The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / uclibc / 0.9.33.2 / 0061-fix-sparc-networking.patch
1 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
2
3 Bug introduced by uclibc-0035-socket.h-pull-socket_type.h-from-eglibc.patch
4 Sent upstream: http://lists.uclibc.org/pipermail/uclibc/2014-July/048438.html
5
6 diff -Nur uClibc-0.9.33.2.orig/libc/inet/socketcalls.c uClibc-0.9.33.2/libc/inet/socketcalls.c
7 --- uClibc-0.9.33.2.orig/libc/inet/socketcalls.c        2012-05-15 09:20:09.000000000 +0200
8 +++ uClibc-0.9.33.2/libc/inet/socketcalls.c     2014-07-28 14:50:52.477479493 +0200
9 @@ -34,6 +34,30 @@
10  #define SYS_ACCEPT4     18
11  #endif
12  
13 +/* for sparc: __NR_socket and others are defined, but syscalls are not implemen
14 +/* see http://lists.busybox.net/pipermail/uclibc/2004-March/029424.html */
15 +#ifdef __sparc__
16 +#undef __NR_accept
17 +#undef __NR_accept4
18 +#undef __NR_bind
19 +#undef __NR_connect
20 +#undef __NR_getpeername
21 +#undef __NR_getsockname
22 +#undef __NR_getsockopt
23 +#undef __NR_listen
24 +#undef __NR_recv
25 +#undef __NR_recvfrom
26 +#undef __NR_recvmsg
27 +#undef __NR_send
28 +#undef __NR_sendmsg
29 +#undef __NR_sendto
30 +#undef __NR_setsockopt
31 +#undef __NR_shutdown
32 +#undef __NR_socket
33 +#undef __NR_socketpair
34 +#endif
35 +
36 +
37  #ifdef __UCLIBC_HAS_THREADS_NATIVE__
38  #include <sysdep-cancel.h>
39  #include <pthreadP.h>