Hi, Here a little patch proposal to fix this plarticular platform build.
Cheers.
From 3155cfe8230a1adc6f4878c038474ec9d2aadbc3 Mon Sep 17 00:00:00 2001 From: David Carlier <[email protected]> Date: Mon, 12 Nov 2018 16:11:14 +0000 Subject: [PATCH] BUILD/MEDIUM: DragonFlyBSD build fix This platform does not have particular build on its own, so it just uses historically the FreeBSD's. Only it does not support the thread/cpu binding. --- src/haproxy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/haproxy.c b/src/haproxy.c index 1d2971d4..9e701215 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -3246,6 +3246,7 @@ int main(int argc, char **argv) pthread_create(&threads[i], NULL, &run_thread_poll_loop, &tids[i]); #ifdef USE_CPU_AFFINITY +#ifndef __DragonFly__ /* Now the CPU affinity for all threads */ for (i = 0; i < global.nbthread; i++) { if (global.cpu_map.proc[relative_pid-1]) @@ -3271,6 +3272,7 @@ int main(int argc, char **argv) sizeof(cpuset), &cpuset); } } +#endif #endif /* !USE_CPU_AFFINITY */ /* when multithreading we need to let only the thread 0 handle the signals */ -- 2.18.0

