summaryrefslogtreecommitdiffstats
path: root/src/util/u_thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/u_thread.h')
-rw-r--r--src/util/u_thread.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/u_thread.h b/src/util/u_thread.h
index 1648d2f5841..c6b35d0814b 100644
--- a/src/util/u_thread.h
+++ b/src/util/u_thread.h
@@ -35,6 +35,13 @@
#ifdef HAVE_PTHREAD
#include <signal.h>
+#ifdef PTHREAD_SETAFFINITY_IN_NP_HEADER
+#include <pthread_np.h>
+#endif
+#endif
+
+#ifdef __FreeBSD__
+#define cpu_set_t cpuset_t
#endif
static inline thrd_t u_thread_create(int (*routine)(void *), void *param)