summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ldso/ldso/ld_syscall.h4
-rw-r--r--libc/sysdeps/linux/common/syscalls.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/ldso/ldso/ld_syscall.h b/ldso/ldso/ld_syscall.h
index db7447f67..386756d05 100644
--- a/ldso/ldso/ld_syscall.h
+++ b/ldso/ldso/ld_syscall.h
@@ -9,8 +9,8 @@
/* Pull in whatever this particular arch's kernel thinks the kernel version of
* struct stat should look like. It turns out that each arch has a different
* opinion on the subject, and different kernel revs use different names... */
-#define _SYS_STAT_H
-#include <asm/stat.h>
+#define new_stat stat
+#include <asm/stat.h>
/* Encoding of the file mode. */
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index db17d045d..487df4adb 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -1517,11 +1517,11 @@ int sigpending(sigset_t *set)
//#define __NR_rt_sigtimedwait 177
#ifdef L___rt_sigtimedwait
-#ifdef __NR_rt_sigtimedwait
-#define __NR___rt_sigtimedwait __NR_rt_sigtimedwait
#include <signal.h>
#define __need_NULL
#include <stddef.h>
+#ifdef __NR_rt_sigtimedwait
+#define __NR___rt_sigtimedwait __NR_rt_sigtimedwait
_syscall4(int, __rt_sigtimedwait, const sigset_t *, set, siginfo_t *, info,
const struct timespec *, timeout, size_t, setsize);