summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/cris/bits/syscalls.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/cris/bits/syscalls.h')
-rw-r--r--libc/sysdeps/linux/cris/bits/syscalls.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/libc/sysdeps/linux/cris/bits/syscalls.h b/libc/sysdeps/linux/cris/bits/syscalls.h
index ce68c04d4..8b74518ce 100644
--- a/libc/sysdeps/linux/cris/bits/syscalls.h
+++ b/libc/sysdeps/linux/cris/bits/syscalls.h
@@ -8,16 +8,11 @@
/* Include the __NR_<name> definitions. */
#include <bits/sysnum.h>
-#if 0
-#ifndef __set_errno
-#define __set_errno(val) (*__errno_location()) = (val)
-#endif
-#endif
+#ifndef __ASSEMBLER__
-#undef SYS_ify
-#define SYS_ify(syscall_name) (__NR_##syscall_name)
+#include <errno.h>
-#ifndef __ASSEMBLER__
+#define SYS_ify(syscall_name) (__NR_##syscall_name)
#undef _syscall0
#define _syscall0(type,name) \