diff --git a/src/debug.c b/src/debug.c index d7a2851ab..58db0b487 100644 --- a/src/debug.c +++ b/src/debug.c @@ -34,7 +34,9 @@ #include #include #include +#ifdef USE_CPU_AFFINITY #include +#endif #include #include #include @@ -751,8 +753,9 @@ static int debug_parse_cli_show_dev(char **args, char *payload, struct appctx *a chunk_appendf(&trash, " %-22s %-11s %-11s \n", " ram limit (hard):", LIM2A(normalize_rlim((ulong)post_mortem.process.boot_lim_ram.rlim_max), "unlimited"), LIM2A(normalize_rlim((ulong)post_mortem.process.run_lim_ram.rlim_max), "unlimited")); - +#ifdef USE_CPU_AFFINITY cpu_topo_dump_summary(ha_cpu_topo, &trash); +#endif ha_free(&err);