Pārlūkot izejas kodu

Fix support for 2.0.x linux kernels. Oops.
-Erik

Eric Andersen 22 gadi atpakaļ
vecāks
revīzija
28a540720b
2 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 2 2
      ldso/ldso/ld_syscall.h
  2. 2 2
      libc/sysdeps/linux/common/syscalls.c

+ 2 - 2
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.  */

+ 2 - 2
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);