From 42d9e5ae686976ed15a3e6fd34c8795116f796ac Mon Sep 17 00:00:00 2001 From: David Carlier Date: Mon, 12 Nov 2018 16:22:19 +0000 Subject: [PATCH] BUILD/MEDIUM: threads/affinity: DragonFly build fix DragonFlyBSD does not have a build on its own, it has always used the FreeBSD's. To be able to support the cpu affinity, it needs few more headers. --- src/haproxy.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/haproxy.c b/src/haproxy.c index 1d2971d4b4..c71482224f 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -52,9 +52,11 @@ #include #ifdef USE_CPU_AFFINITY #include -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__DragonFly__) #include +#ifdef __FreeBSD__ #include +#endif #include #endif #endif -- 2.47.3