projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test_urcu_lfq: remove rcu_defer_register_thread() from test_urcu_lfq
[userspace-rcu.git]
/
tests
/
test_rwlock_timing.c
diff --git
a/tests/test_rwlock_timing.c
b/tests/test_rwlock_timing.c
index 96269c08b46a580ce65a7acb0cd523d1b75873e0..628bed459af61e38afada3626e2b05e8dd659ab6 100644
(file)
--- a/
tests/test_rwlock_timing.c
+++ b/
tests/test_rwlock_timing.c
@@
-30,12
+30,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.025174 seconds
and
4
git commands to generate.