summaryrefslogtreecommitdiff
path: root/ldso/ldso/sh64/dl-syscalls.h
diff options
context:
space:
mode:
Diffstat (limited to 'ldso/ldso/sh64/dl-syscalls.h')
-rw-r--r--ldso/ldso/sh64/dl-syscalls.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ldso/ldso/sh64/dl-syscalls.h b/ldso/ldso/sh64/dl-syscalls.h
new file mode 100644
index 000000000..34da5d630
--- /dev/null
+++ b/ldso/ldso/sh64/dl-syscalls.h
@@ -0,0 +1,9 @@
+/* Define the __set_errno macro as nothing so that we don't bother
+ * setting errno, which is important since we make system calls
+ * before the errno symbol is dynamicly linked. */
+
+#include <errno.h>
+#undef __set_errno
+#define __set_errno(X) {(void)(X);}
+#include "sys/syscall.h"
+