]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: namespaces: don't build namespace.c if disabled
authorWilly Tarreau <w@1wt.eu>
Sun, 11 Nov 2018 13:38:09 +0000 (14:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 12 Nov 2018 18:15:15 +0000 (19:15 +0100)
commit7520e4ff572171220198300682f021b9657fa564
treed8738db57873cd395b6d2fc6c60c7122cfd23bbf
parent691fe3928435665a9128ba83c4b625243c31e79a
MINOR: namespaces: don't build namespace.c if disabled

When namespaces are disabled, support is still reported because the file
is built with almost nothing in it but built anyway. Instead of extending
the scope of the numerous ifdefs in this file, better avoid building it
when namespaces are diabled. In this case we define my_socketat() as an
inline function mapping directly to socket(). The struct netns_entry
still needs to be defined because it's used by various other functions
in the code.
Makefile
include/common/namespace.h
src/namespace.c