tests: only include syscall.h on linux systems
[urcu.git] / tests / test_qsbr_timing.c
index f9f450445882c0fb462b082989a730fe71bb6f52..792554867735702c007736c2713125ffa8060686 100644 (file)
 #include <unistd.h>
 #include <stdio.h>
 #include <assert.h>
-#include <sys/syscall.h>
 #include <errno.h>
 
 #include <urcu/arch.h>
 
+#ifdef __linux__
+#include <syscall.h>
+#endif
+
 #if defined(_syscall0)
 _syscall0(pid_t, gettid)
 #elif defined(__NR_gettid)
This page took 0.022665 seconds and 4 git commands to generate.