Build fix: POD static_assert check fails on lttng_event_exclusions
[lttng-tools.git] / src / lib / lttng-ctl / lttng-ctl-health.cpp
index fd6279ade1aaa49110924a7818987305e75e793b..8ec35907459eb7bad89ae27c413e1f9165049016 100644 (file)
@@ -13,6 +13,7 @@
 #define _LGPL_SOURCE
 #include "lttng-ctl-helper.hpp"
 
+#include <common/compiler.hpp>
 #include <common/compat/errno.hpp>
 #include <common/defaults.hpp>
 #include <common/utils.hpp>
@@ -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)
This page took 0.031124 seconds and 4 git commands to generate.