Sorry, bas patch... Here the correct one. Regards.
On Mon, 12 Nov 2018 at 16:16, David CARLIER <[email protected]> wrote:
>
> Hi,
>
> Here a little patch proposal to fix this plarticular platform build.
>
> Cheers.
From e16a4199362748b2492c89e9693e845df28a2eb4 Mon Sep 17 00:00:00 2001
From: David Carlier <[email protected]>
Date: Mon, 12 Nov 2018 16:22:19 +0000
Subject: [PATCH] BUILD/MEDIUM: 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 1d2971d4..c7148222 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -52,9 +52,11 @@
 #include <grp.h>
 #ifdef USE_CPU_AFFINITY
 #include <sched.h>
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__DragonFly__)
 #include <sys/param.h>
+#ifdef __FreeBSD__
 #include <sys/cpuset.h>
+#endif
 #include <pthread_np.h>
 #endif
 #endif
-- 
2.18.0

Reply via email to