]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: namespaces: fix a potential build warning in namespaces.c
authorWilly Tarreau <w@1wt.eu>
Thu, 17 Mar 2016 04:39:53 +0000 (05:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Mar 2016 04:39:53 +0000 (05:39 +0100)
commit3fa0e2a7455de5dbe44bafb5b59d2fe1b7f6474c
treec2a279724f79d0d3bc75f422778a9f85c1b2a56f
parente2e5bde3f2f5345438f4972667725be2ca9aa5e1
BUILD: namespaces: fix a potential build warning in namespaces.c

I just met this warning today making me realize that haproxy's
headers were included prior to the system ones, so all #ifndefs
are taken first then the system redefines them. Simply move
haproxy includes after the system's. This should be backported
to 1.6 as well.

In file included from /usr/include/bits/fcntl.h:61:0,
                 from /usr/include/fcntl.h:35,
                 from src/namespace.c:13:
/usr/include/bits/fcntl-linux.h:203:0: warning: "F_SETPIPE_SZ" redefined [enabled by default]
In file included from include/common/config.h:26:0,
                 from include/proto/log.h:29,
                 from src/namespace.c:7:
include/common/compat.h:81:0: note: this is the location of the previous definition
src/namespace.c