From 190da1cd0c221438c563b5b605ff811e9075e210 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 23 Aug 2006 23:20:30 +0000 Subject: sync with psm: update errno handling to be the same on all arches --- libc/sysdeps/linux/bfin/bits/syscalls.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'libc/sysdeps/linux/bfin') 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 -#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 -#ifndef __ASSEMBLER__ +#define SYS_ify(syscall_name) (__NR_##syscall_name) /* user-visible error numbers are in the range -1 - -4095: see */ #if defined _LIBC && !defined __set_errno -- cgit v1.2.3