diff options
-rw-r--r-- | libc/sysdeps/linux/arm/bits/syscalls.h | 18 | ||||
-rw-r--r-- | libpthread/nptl/sysdeps/unix/sysv/linux/arm/pt-gettimeofday.c | 3 |
2 files changed, 19 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/arm/bits/syscalls.h b/libc/sysdeps/linux/arm/bits/syscalls.h index 85c6cbd55..85f07ddd4 100644 --- a/libc/sysdeps/linux/arm/bits/syscalls.h +++ b/libc/sysdeps/linux/arm/bits/syscalls.h @@ -4,6 +4,24 @@ # error "Never use <bits/syscalls.h> directly; include <sys/syscall.h> instead." #endif +/* EABI kernels don't implement some redundant syscalls. Undefine them + here so that fallback implementations will be used. */ + +#if defined(__ARM_EABI__) +#undef __NR_time +#undef __NR_umount +#undef __NR_stime +#undef __NR_alarm +#undef __NR_utime +#undef __NR_getrlimit +#undef __NR_select +#undef __NR_readdir +#undef __NR_mmap +#undef __NR_socketcall +#undef __NR_syscall +#undef __NR_ipc +#endif + /* Some of the sneaky macros in the code were taken from glibc-2.3.2/sysdeps/unix/sysv/linux/arm/sysdep.h diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/arm/pt-gettimeofday.c b/libpthread/nptl/sysdeps/unix/sysv/linux/arm/pt-gettimeofday.c index 12552dbf0..08710f1c8 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/arm/pt-gettimeofday.c +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/arm/pt-gettimeofday.c @@ -1,6 +1,5 @@ -#include "../../../../../../../libc/sysdeps/linux/common/syscalls.h" +#include <sys/syscall.h> #include <sys/time.h> int gettimeofday (struct timeval *, struct timezone *) attribute_hidden; _syscall2(int, gettimeofday, struct timeval *, tv, struct timezone *, tz); - |