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.
diff --git a/src/haproxy.c b/src/haproxy.c
index 1d2971d..c714822 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