Add <_GNU_SOURCE> so <CLONE_FILES> is visible from <sched.h>. When it
is, generate "expose-experimental-directives" and "tune.fd.tables
per-thread-group" in the global section.
+#define _GNU_SOURCE
#include <errno.h>
#include <haproxy/connection.h>
hbuf_appendf(&gbuf, "global\n");
hbuf_appendf(&gbuf, "\ttune.memory.hot-size 3145728\n");
hbuf_appendf(&gbuf, "\tssl-server-verify none\n");
+#ifdef CLONE_FILES
+ /* required for "tune.fd.tables" below */
+ hbuf_appendf(&gbuf, "\texpose-experimental-directives\n");
+ hbuf_appendf(&gbuf, "\ttune.fd.tables per-thread-group\n");
+#endif
if (hbuf_alloc(&buf) == NULL) {
ha_alert("failed to allocate a buffer\n");