From 2822593a128cc88ca767ce316729ec84914a89a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Wed, 18 May 2022 11:49:34 +0200 Subject: [PATCH] BUILD: stats: Missing headers inclusions from stats.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If we add a new stats module to C source files including only stats.h we get these errors: include/haproxy/stats.h:39:31: error: array type has incomplete element type ‘struct name_desc’ 39 | extern const struct name_desc stat_fields[]; include/haproxy/stats.h:55:50: warning: ‘struct listener’ declared inside parameter list will not be visible outside of this definition or declaration 55 | int stats_fill_li_stats(struct proxy *px, struct listener *l, int flags, name_desc struct is defined in tools-t.h and listener struct in listner-t.h. --- include/haproxy/stats.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/haproxy/stats.h b/include/haproxy/stats.h index 2d52f6fa87..a8ffbc7047 100644 --- a/include/haproxy/stats.h +++ b/include/haproxy/stats.h @@ -24,7 +24,9 @@ #define _HAPROXY_STATS_H #include +#include #include +#include struct channel; struct buffer;