summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-10-29 11:55:43 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-11-02 16:21:41 +0100
commit5724141a037edb06c15bd78cfe04108e36991276 (patch)
tree9677c39ea6d5f4f4a0ae11bdf09ad77b895b58a7 /libc
parent9ed163dc0eaebe8734c35b356c406e9eb1c68d76 (diff)
stubs: undef linux specific unless they were asked for
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/stubs.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/stubs.c b/libc/sysdeps/linux/common/stubs.c
index e14bbc3a0..4ec932acc 100644
--- a/libc/sysdeps/linux/common/stubs.c
+++ b/libc/sysdeps/linux/common/stubs.c
@@ -32,7 +32,41 @@ static int enosys_stub(void)
#endif
#ifndef __UCLIBC_LINUX_SPECIFIC__
+# undef __NR_accept4
+# undef __NR_arch_prctl
+# undef __NR_capget
+# undef __NR_capset
+# undef __NR_fstatfs
+# undef __NR_inotify_init
+# undef __NR_inotify_add_watch
+# undef __NR_inotify_rm_watch
+# undef __NR_ioperm
+# undef __NR_iopl
+# undef __NR_madvise
+# undef __NR_modify_ldt
+# undef __NR_personality
# undef __NR_pipe2
+# undef __NR_ppoll
+# undef __NR_prctl
+# undef __NR_readahead
+# undef __NR_reboot
+# undef __NR_remap_file_pages
+# undef __NR_sched_getaffinity
+# undef __NR_sched_setaffinity
+# undef __NR_sendfile
+# undef __NR_setfsgid
+# undef __NR_setfsuid
+# undef __NR_setresuid
+# undef __NR_signalfd
+# undef __NR_splice
+# undef __NR_swapoff
+# undef __NR_swapon
+# undef __NR_sync_file_range
+# undef __NR_sysctl
+# undef __NR_sysinfo
+# undef __NR_tee
+# undef __NR_vhangup
+# undef __NR_vmsplice
#endif
#ifndef __UCLIBC_HAS_SOCKET__