tests: only include syscall.h on linux systems
[urcu.git] / tests / test_urcu_gc.c
index d0f7e6e8e3f2466269c295b3394eb08fa16a4d37..4eaa61b777d0dd6460b4f0ae196bb5ca0d833c28 100644 (file)
 #include <unistd.h>
 #include <stdio.h>
 #include <assert.h>
-#include <sys/syscall.h>
 #include <sched.h>
 #include <errno.h>
 
 #include <urcu/arch.h>
 
+#ifdef __linux__
+#include <syscall.h>
+#endif
+
 /* hardcoded number of CPUs */
 #define NR_CPUS 16384
 
This page took 0.022667 seconds and 4 git commands to generate.