summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/ia64/bits/syscalls.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/ia64/bits/syscalls.h')
-rw-r--r--libc/sysdeps/linux/ia64/bits/syscalls.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/ia64/bits/syscalls.h b/libc/sysdeps/linux/ia64/bits/syscalls.h
index c5da7d91f..666468a7a 100644
--- a/libc/sysdeps/linux/ia64/bits/syscalls.h
+++ b/libc/sysdeps/linux/ia64/bits/syscalls.h
@@ -31,17 +31,14 @@
* programs. */
#include <bits/sysnum.h>
-#ifndef __set_errno
-# define __set_errno(val) (*__errno_location ()) = (val)
-#endif
+#ifndef __ASSEMBLER__
+#include <errno.h>
-#ifndef __ASSEMBLER__
+#define SYS_ify(syscall_name) (__NR_##syscall_name)
#undef IA64_USE_NEW_STUB
-#define SYS_ify(syscall_name) __NR_##syscall_name
-
/* taken from asm-ia64/break.h */
#define __IA64_BREAK_SYSCALL 0x100000
#define ___IA64_BREAK_SYSCALL "0x100000"