Reinsert missing test_urcu_*.c files (missing in rename)
[urcu.git] / tests / test_rwlock.c
index 445ce958bb464a6383aa2cc8d11817e361341133..9c8f97e39cf2232be5f461a655102ba1c3feac07 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
 
@@ -85,7 +88,7 @@ static unsigned long wduration;
 static inline void loop_sleep(unsigned long l)
 {
        while(l-- != 0)
-               cpu_relax();
+               caa_cpu_relax();
 }
 
 static int verbose_mode;
This page took 0.023682 seconds and 4 git commands to generate.