]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD/MEDIUM: threads/affinity: DragonFly build fix
authorDavid Carlier <devnexen@gmail.com>
Mon, 12 Nov 2018 16:22:19 +0000 (16:22 +0000)
committerWilly Tarreau <w@1wt.eu>
Mon, 12 Nov 2018 18:16:00 +0000 (19:16 +0100)
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

index 1d2971d4b43a8485ee737f3e9a11174e262a98db..c71482224fb8d418f375bf96529c397c91fe18c9 100644 (file)
 #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