tests: only include syscall.h on linux systems
[urcu.git] / tests / test_urcu_defer.c
index 248ac306f9d93b36312ecce453f077542fe21149..7d71f1029f45f0d97d933e6d85a97ded23dd85ef 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.022573 seconds and 4 git commands to generate.