projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rculfhash: add comment about hash seed randomness within test program
[urcu.git]
/
tests
/
test_perthreadlock_timing.c
diff --git
a/tests/test_perthreadlock_timing.c
b/tests/test_perthreadlock_timing.c
index 26b642af1cbca9a17b012ea57ac852c360243aa3..bc20ed0599cf4610fe42146f6456da90fc66f3d3 100644
(file)
--- a/
tests/test_perthreadlock_timing.c
+++ b/
tests/test_perthreadlock_timing.c
@@
-29,12
+29,15
@@
#include <unistd.h>
#include <stdio.h>
#include <assert.h>
#include <unistd.h>
#include <stdio.h>
#include <assert.h>
-#include <sys/syscall.h>
#include <pthread.h>
#include <errno.h>
#include <urcu/arch.h>
#include <pthread.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)
#if defined(_syscall0)
_syscall0(pid_t, gettid)
#elif defined(__NR_gettid)
This page took
0.025081 seconds
and
4
git commands to generate.