summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/include/sys/syscall.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/include/sys/syscall.h b/sys/include/sys/syscall.h
index 3f3a8b3..2b98df7 100644
--- a/sys/include/sys/syscall.h
+++ b/sys/include/sys/syscall.h
@@ -33,7 +33,9 @@
#if !defined(__ASSEMBLER__)
#include <sys/types.h>
#include <sys/cdefs.h>
+#if defined(_KERNEL) || defined(_OLIBC)
#include <machine/syscall.h>
+#endif /* _KERNEL || _OLIBC */
#endif
#define SYS_none 0