From b031a35828456cc2cee76af5444d1d9c4ec2cd2d Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Wed, 21 Sep 2005 21:18:04 +0000 Subject: __set_errno must be redefined after #include "sys/syscall.h". syscall.h should not have it's own version of __set_errno, instead syscall.h should include errno.h(see powerpc) since errno handling depends on threads/no threads. I leave the the fixing of syscall.h since there might be some smaller compile problems. --- ldso/ldso/sh/dl-syscalls.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ldso/ldso/sh') diff --git a/ldso/ldso/sh/dl-syscalls.h b/ldso/ldso/sh/dl-syscalls.h index a97ff562c..afb1cd630 100644 --- a/ldso/ldso/sh/dl-syscalls.h +++ b/ldso/ldso/sh/dl-syscalls.h @@ -1,7 +1,8 @@ /* We can't use the real errno in ldso, since it has not yet * been dynamicly linked in yet. */ +#include "sys/syscall.h" extern int _dl_errno; +#undef __set_errno #define __set_errno(X) {(_dl_errno) = (X);} -#include "sys/syscall.h" #define MMAP_HAS_6_ARGS -- cgit v1.2.3