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.
This commit is contained in:
David Carlier 2018-11-12 16:22:19 +00:00 committed by Willy Tarreau
parent 7520e4ff57
commit 42d9e5ae68

View File

@ -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