aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-02-09 10:04:35 +0100
committerGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-02-09 10:26:26 +0100
commit5c2f94e7b4223939524cee0f40057a155704127c (patch)
treecef6068a107fba3ec1164b41e7b9e5a0e67f4e9d
parent38c29ff31994f1ae04e8f904abc8f68e31d52d33 (diff)
downloaduClibc-future.tar.gz
uClibc-future.tar.bz2
socketcall: re-add guardfuture
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r--libc/sysdeps/linux/common/__socketcall.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/__socketcall.c b/libc/sysdeps/linux/common/__socketcall.c
index 4104c45b5..a1fc41779 100644
--- a/libc/sysdeps/linux/common/__socketcall.c
+++ b/libc/sysdeps/linux/common/__socketcall.c
@@ -8,7 +8,18 @@
*/
#include <sys/syscall.h>
+
+/* At the time of this writing,
+ * several arches provide the individual calls and do _not_ go through
+ * this demuxer.
+ *
+ * Verify all arches supported by your kernel before you remove the
+ * guard below!
+ */
+#ifdef __NR_socketcall
#include <sys/socket.h>
#define __NR___socketcall __NR_socketcall
_syscall2(int, __socketcall, int, call, unsigned long *, args)
+
+#endif