summaryrefslogtreecommitdiff
path: root/arch/sh/include/uapi/asm/unistd_32.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/include/uapi/asm/unistd_32.h')
-rw-r--r--arch/sh/include/uapi/asm/unistd_32.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/sh/include/uapi/asm/unistd_32.h b/arch/sh/include/uapi/asm/unistd_32.h
index 58f04cf3d1d9..31c85aa251ab 100644
--- a/arch/sh/include/uapi/asm/unistd_32.h
+++ b/arch/sh/include/uapi/asm/unistd_32.h
@@ -396,6 +396,8 @@
#define __NR_preadv2 381
#define __NR_pwritev2 382
-#define NR_syscalls 383
+#ifdef __KERNEL__
+#define __NR_syscalls 383
+#endif
#endif /* __ASM_SH_UNISTD_32_H */