[prev in list] [next in list] [prev in thread] [next in thread] 

List:       uclibc-cvs
Subject:    [git commit] unbreak networking code for sparc
From:       Bernhard Reutner-Fischer <rep.dot.nop () gmail ! com>
Date:       2014-08-18 9:57:39
Message-ID: 20140818095850.D32429D4AA () busybox ! osuosl ! org
[Download RAW message or body]

commit: http://git.uclibc.org/uClibc/commit/?id=775d660544116a4f0007cdf6a6f32d2ce8346a77
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

This commit 1e2e4ac6193ffe0900bd392fa3c596883771eb34 breaks networking
on sparc systems. In Linux the socket functions are declared, but not
implemented and must be routed through socketcall().

Tested via Qemu 2.0.0.

Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
---
 libc/inet/socketcalls.c |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/libc/inet/socketcalls.c b/libc/inet/socketcalls.c
index 1353e9d..6f4054b 100644
--- a/libc/inet/socketcalls.c
+++ b/libc/inet/socketcalls.c
@@ -31,6 +31,27 @@
 #define SYS_ACCEPT4     18
 #endif
 
+#ifdef __sparc__
+#undef __NR_accept
+#undef __NR_accept4
+#undef __NR_bind
+#undef __NR_connect
+#undef __NR_getpeername
+#undef __NR_getsockname
+#undef __NR_getsockopt
+#undef __NR_listen
+#undef __NR_recv
+#undef __NR_recvfrom
+#undef __NR_recvmsg
+#undef __NR_send
+#undef __NR_sendmsg
+#undef __NR_sendto
+#undef __NR_setsockopt
+#undef __NR_shutdown
+#undef __NR_socket
+#undef __NR_socketpair
+#endif
+
 #ifdef L_accept
 static int __NC(accept)(int sockfd, struct sockaddr *addr, socklen_t *addrlen)
 {
_______________________________________________
uClibc-cvs mailing list
uClibc-cvs@uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic