Commit 57931908 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

It is not kosher to have #ifdefs inside macros.

parent 006760c3
......@@ -395,6 +395,10 @@ init_params(struct cli *cli)
MCF_SetDefault("gzip_buffer", "4k");
}
#if !defined(HAVE_ACCEPT_FILTERS) || defined(__linux)
MCF_SetDefault("accept_filter", "off");
#endif
low = sysconf(_SC_THREAD_STACK_MIN);
bprintf(stackmin, "%jd", (intmax_t)low);
MCF_SetMinimum("thread_pool_stack", stackmin);
......
......@@ -35,11 +35,7 @@ PARAM(
/* typ */ bool,
/* min */ NULL,
/* max */ NULL,
#if defined(HAVE_ACCEPT_FILTERS) || defined(__linux)
/* default */ "on",
#else
/* default */ "off",
#endif /* HAVE_ACCEPT_FILTERS || __linux */
/* units */ "bool",
/* flags */ MUST_RESTART,
/* s-text */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment