summaryrefslogtreecommitdiff
path: root/ldso/ldso/x86_64/dl-syscalls.h
diff options
context:
space:
mode:
Diffstat (limited to 'ldso/ldso/x86_64/dl-syscalls.h')
-rw-r--r--ldso/ldso/x86_64/dl-syscalls.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ldso/ldso/x86_64/dl-syscalls.h b/ldso/ldso/x86_64/dl-syscalls.h
index a97ff562c..afb1cd630 100644
--- a/ldso/ldso/x86_64/dl-syscalls.h
+++ b/ldso/ldso/x86_64/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