projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tests: only include syscall.h on linux systems
[urcu.git]
/
tests
/
test_urcu.c
diff --git
a/tests/test_urcu.c
b/tests/test_urcu.c
index bbdb2d8f4ac33abe82aa23ce6a8844a2db179b89..f1b2f21b1044cf32b7bd5c0515dcd556789eefbe 100644
(file)
--- a/
tests/test_urcu.c
+++ b/
tests/test_urcu.c
@@
-31,12
+31,15
@@
#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
This page took
0.023645 seconds
and
4
git commands to generate.