mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-24 20:31:00 +01:00
CLEANUP: namespaces: use the build options list to report it
This removes one #ifdef from haproxy.c.
This commit is contained in:
parent
3dd483e727
commit
dba5002c4c
@ -454,10 +454,6 @@ static void display_build_opts()
|
||||
"\n");
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_HAP_NS)
|
||||
printf("Built with network namespace support\n");
|
||||
#endif
|
||||
|
||||
list_for_each_entry(item, &build_opts_list, list) {
|
||||
puts(item->str);
|
||||
}
|
||||
|
||||
@ -112,3 +112,9 @@ int my_socketat(const struct netns_entry *ns, int domain, int type, int protocol
|
||||
|
||||
return sock;
|
||||
}
|
||||
|
||||
__attribute__((constructor))
|
||||
static void __ns_init(void)
|
||||
{
|
||||
hap_register_build_opts("Built with network namespace support.", 0);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user