summaryrefslogtreecommitdiff
path: root/src/gc/unix/gcenv.unix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gc/unix/gcenv.unix.cpp')
-rw-r--r--src/gc/unix/gcenv.unix.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gc/unix/gcenv.unix.cpp b/src/gc/unix/gcenv.unix.cpp
index c248082c95..f08021706f 100644
--- a/src/gc/unix/gcenv.unix.cpp
+++ b/src/gc/unix/gcenv.unix.cpp
@@ -48,6 +48,14 @@
# endif
#endif
+#if HAVE_PTHREAD_NP_H
+#include <pthread_np.h>
+#endif
+
+#if HAVE_CPUSET_T
+typedef cpuset_t cpu_set_t;
+#endif
+
#include <time.h> // nanosleep
#include <sched.h> // sched_yield
#include <errno.h>
@@ -136,10 +144,6 @@ uint32_t g_pageSizeUnixInl = 0;
AffinitySet g_processAffinitySet;
-#if HAVE_CPUSET_T
-typedef cpuset_t cpu_set_t;
-#endif
-
// The highest NUMA node available
int g_highestNumaNode = 0;
// Is numa available