projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rculfhash: merge duplicated code for bucket lookup
[urcu.git]
/
tests
/
test_looplen.c
diff --git
a/tests/test_looplen.c
b/tests/test_looplen.c
index 01394e0520292a892673d7d67f07210d4acd29e3..3a750cc1b4e2fd5870dd85dfd6f44f2d41f61d70 100644
(file)
--- a/
tests/test_looplen.c
+++ b/
tests/test_looplen.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 <sched.h>
#include <errno.h>
#include <urcu/arch.h>
#include <sched.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.023801 seconds
and
4
git commands to generate.