broadcom-diag: fix WRT150N/WRT160N detection (patch from #10836)
[openwrt/staging/lynxis/omap.git] / toolchain / glibc / patches / 2.3.6 / 601-powerpc_socket_week_alias.patch
1 diff -ruN glibc-2.3.6-orig/sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S glibc-2.3.6/sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S
2 --- glibc-2.3.6-orig/sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S 2003-07-12 00:46:12.000000000 +0200
3 +++ glibc-2.3.6/sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S 2008-11-10 16:02:12.760497684 +0100
4 @@ -42,7 +42,11 @@
5 #define stackblock 20
6
7 #ifndef __socket
8 +#ifndef NO_WEAK_ALIAS
9 #define __socket P(__,socket)
10 +#else
11 +#define __socket socket
12 +#endif
13 #endif
14
15 .text
16 @@ -120,4 +124,6 @@
17
18 PSEUDO_END (__socket)
19
20 +#ifndef NO_WEAK_ALIAS
21 weak_alias (__socket, socket)
22 +#endif