X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Flttng-ctl%2Flttng-ctl-health.cpp;fp=src%2Flib%2Flttng-ctl%2Flttng-ctl-health.cpp;h=8ec35907459eb7bad89ae27c413e1f9165049016;hb=40ebe2193c00a3b67294ad38b47537cdd68b0e82;hp=fd6279ade1aaa49110924a7818987305e75e793b;hpb=45cc2527c1b679884570130eca8f285b2a9a8406;p=lttng-tools.git diff --git a/src/lib/lttng-ctl/lttng-ctl-health.cpp b/src/lib/lttng-ctl/lttng-ctl-health.cpp index fd6279ade..8ec359074 100644 --- a/src/lib/lttng-ctl/lttng-ctl-health.cpp +++ b/src/lib/lttng-ctl/lttng-ctl-health.cpp @@ -13,6 +13,7 @@ #define _LGPL_SOURCE #include "lttng-ctl-helper.hpp" +#include #include #include #include @@ -48,7 +49,7 @@ struct lttng_health { char health_sock_path[PATH_MAX]; /* For consumer health only */ enum lttng_health_consumerd consumerd_type; - struct lttng_health_thread thread[]; + struct lttng_health_thread thread[LTTNG_FLEXIBLE_ARRAY_MEMBER_LENGTH]; }; static const char *get_sessiond_thread_name(health_type_sessiond type)