summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/alpha/bits
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/alpha/bits')
-rw-r--r--libc/sysdeps/linux/alpha/bits/syscalls.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/alpha/bits/syscalls.h b/libc/sysdeps/linux/alpha/bits/syscalls.h
index 3c227e643..561d4bf15 100644
--- a/libc/sysdeps/linux/alpha/bits/syscalls.h
+++ b/libc/sysdeps/linux/alpha/bits/syscalls.h
@@ -9,12 +9,12 @@
* programs. */
#include <bits/sysnum.h>
-#ifndef __set_errno
-# define __set_errno(val) (*__errno_location ()) = (val)
-#endif
-
#ifndef __ASSEMBLER__
+#include <errno.h>
+
+#define SYS_ify(syscall_name) (__NR_##syscall_name)
+
#define _syscall_return(type) \
return (_sc_err ? __set_errno(_sc_ret), _sc_ret = -1L : 0), (type) _sc_ret