summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/bfin/bits/syscalls.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/bfin/bits/syscalls.h')
-rw-r--r--libc/sysdeps/linux/bfin/bits/syscalls.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/libc/sysdeps/linux/bfin/bits/syscalls.h b/libc/sysdeps/linux/bfin/bits/syscalls.h
index 475d193ce..2309f7f6d 100644
--- a/libc/sysdeps/linux/bfin/bits/syscalls.h
+++ b/libc/sysdeps/linux/bfin/bits/syscalls.h
@@ -9,15 +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>
-#ifndef __ASSEMBLER__
+#define SYS_ify(syscall_name) (__NR_##syscall_name)
/* user-visible error numbers are in the range -1 - -4095: see <asm-frv/errno.h> */
#if defined _LIBC && !defined __set_errno