diff options
author | Joakim Tjernlund <joakim.tjernlund@transmode.se> | 2005-09-21 21:18:04 +0000 |
---|---|---|
committer | Joakim Tjernlund <joakim.tjernlund@transmode.se> | 2005-09-21 21:18:04 +0000 |
commit | b031a35828456cc2cee76af5444d1d9c4ec2cd2d (patch) | |
tree | d602090c986afd739fcee2275b14711ad5214c90 /ldso/ldso/sh64 | |
parent | 64e29a34cf170c8c9cc427e3e3d3f5419d2aca21 (diff) |
__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.
Diffstat (limited to 'ldso/ldso/sh64')
-rw-r--r-- | ldso/ldso/sh64/dl-syscalls.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ldso/ldso/sh64/dl-syscalls.h b/ldso/ldso/sh64/dl-syscalls.h index 1db7b6719..4fe50fac4 100644 --- a/ldso/ldso/sh64/dl-syscalls.h +++ b/ldso/ldso/sh64/dl-syscalls.h @@ -1,8 +1,9 @@ /* 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" #undef __syscall_return #define __syscall_return(type, res) \ |