]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: stats: Missing headers inclusions from stats.h
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 18 May 2022 09:49:34 +0000 (11:49 +0200)
committerFrédéric Lécaille <flecaille@haproxy.com>
Fri, 20 May 2022 14:57:12 +0000 (16:57 +0200)
commit2822593a128cc88ca767ce316729ec84914a89a0
tree6017876eaec6913261353368e04d3ff457ba0c06
parent6492e66e413f7eb26697b9997dbf6063aefe28ff
BUILD: stats: Missing headers inclusions from stats.h

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