diff options
author | Khem Raj <kraj@mvista.com> | 2008-07-14 07:39:03 +0000 |
---|---|---|
committer | Khem Raj <kraj@mvista.com> | 2008-07-14 07:39:03 +0000 |
commit | 4d85740b199127856cbce1ed697b8f86e9ca5fda (patch) | |
tree | 189fc16dc24ec4a77a8449b42329bbea04d4228b /libc | |
parent | 32c5dde1e30fd8dc1fbac830cd8c92f8e4c11ef7 (diff) | |
download | uClibc-alpine-4d85740b199127856cbce1ed697b8f86e9ca5fda.tar.bz2 uClibc-alpine-4d85740b199127856cbce1ed697b8f86e9ca5fda.tar.xz |
Undefine some of redundant syscalls not used by EABI kernels. So uclibc could use alternative implementations for them.
include sys/syscalls.h in pt-gettimeofday.c
Diffstat (limited to 'libc')
-rw-r--r-- | libc/sysdeps/linux/arm/bits/syscalls.h | 18 |
1 files changed, 18 insertions, 0 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 |