diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-06-21 21:32:00 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-06-21 21:32:00 +0000 |
commit | 28a540720b6db3302cb6a2af3173cb070e2fdcbb (patch) | |
tree | 340a2b70a70edee510ddce9b48f346e0ab983304 | |
parent | cc19adf7bb1865d73350a9723b49b465dea78b27 (diff) |
Fix support for 2.0.x linux kernels. Oops.
-Erik
-rw-r--r-- | ldso/ldso/ld_syscall.h | 4 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/syscalls.c | 4 |
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); |