CLEANUP: namespaces: use the build options list to report it

This removes one #ifdef from haproxy.c.
This commit is contained in:
Willy Tarreau 2016-12-21 18:51:45 +01:00
parent 3dd483e727
commit dba5002c4c
2 changed files with 6 additions and 4 deletions

View File

@ -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);
}

View File

@ -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);
}