summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh64/bits/syscalls.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/sh64/bits/syscalls.h')
-rw-r--r--libc/sysdeps/linux/sh64/bits/syscalls.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/libc/sysdeps/linux/sh64/bits/syscalls.h b/libc/sysdeps/linux/sh64/bits/syscalls.h
index e6190303a..9b4efc2e5 100644
--- a/libc/sysdeps/linux/sh64/bits/syscalls.h
+++ b/libc/sysdeps/linux/sh64/bits/syscalls.h
@@ -9,15 +9,12 @@
* programs. */
#include <bits/sysnum.h>
-#ifndef __set_errno
-# define __set_errno(val) (*__errno_location ()) = (val)
-#endif
-#ifndef SYS_ify
-# define SYS_ify(syscall_name) (__NR_##syscall_name)
-#endif
-
#ifndef __ASSEMBLER__
+#include <errno.h>
+
+#define SYS_ify(syscall_name) (__NR_##syscall_name)
+
/* user-visible error numbers are in the range -1 - -125: see <asm-sh64/errno.h> */
#define __syscall_return(type, res) \
do { \