tests: only include syscall.h on linux systems
[urcu.git] / tests / test_mutex.c
index 747bcc442dec2a63a507b0bf0be075fe5ee024b7..1194b0298a68bffd75bb382bbe5c601d123da7ec 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.022491 seconds and 4 git commands to generate.