diff options
Diffstat (limited to 'ldso/include/dl-syscall.h')
-rw-r--r-- | ldso/include/dl-syscall.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ldso/include/dl-syscall.h b/ldso/include/dl-syscall.h index da3ac7f6f..7539c2231 100644 --- a/ldso/include/dl-syscall.h +++ b/ldso/include/dl-syscall.h @@ -8,6 +8,13 @@ #ifndef _LD_SYSCALL_H_ #define _LD_SYSCALL_H_ +/* 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);} + /* Pull in the arch specific syscall implementation */ #include <dl-syscalls.h> /* For MAP_ANONYMOUS -- differs between platforms */ |