summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/vax/bits/syscalls.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/vax/bits/syscalls.h')
-rw-r--r--libc/sysdeps/linux/vax/bits/syscalls.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/vax/bits/syscalls.h b/libc/sysdeps/linux/vax/bits/syscalls.h
index caa62118d..f80b40539 100644
--- a/libc/sysdeps/linux/vax/bits/syscalls.h
+++ b/libc/sysdeps/linux/vax/bits/syscalls.h
@@ -9,13 +9,11 @@
* programs. */
#include <bits/sysnum.h>
-#ifndef __set_errno
-# define __set_errno(val) (*__errno_location())=(val)
-#endif
+#ifndef __ASSEMBLER__
-#ifndef SYS_ify
-# define SYS_ify(syscall_name) (__NR_##syscall_name)
-#endif
+#include <errno.h>
+
+#define SYS_ify(syscall_name) (__NR_##syscall_name)
#undef _syscall_return
#define _syscall_return(type) \
@@ -261,4 +259,5 @@ type name (type1 arg1, \
_syscall_return (type); \
}
+#endif /* __ASSEMBLER__ */
#endif /* _BITS_SYSCALLS_H */