summaryrefslogtreecommitdiff
path: root/ldso/ldso/i386/dl-syscalls.h
diff options
context:
space:
mode:
Diffstat (limited to 'ldso/ldso/i386/dl-syscalls.h')
-rw-r--r--ldso/ldso/i386/dl-syscalls.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ldso/ldso/i386/dl-syscalls.h b/ldso/ldso/i386/dl-syscalls.h
index dc0cc6164..996bb87c6 100644
--- a/ldso/ldso/i386/dl-syscalls.h
+++ b/ldso/ldso/i386/dl-syscalls.h
@@ -1,5 +1,6 @@
/* 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"