tests: only include syscall.h on linux systems
[urcu.git] / tests / test_urcu_assign.c
index a73fc23892aa37961de60c409d6b2dbae0d11d49..851b8506b9bc85791b77fb5fad12fdc88ea8508c 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.022725 seconds and 4 git commands to generate.