]> git.wh0rd.org Git - patches.git/blob - 6530_all_sparc-glibc-2.3.6-socket-no-weak-alias.patch
more random patches. who knows.
[patches.git] / 6530_all_sparc-glibc-2.3.6-socket-no-weak-alias.patch
1 2005-12-19  Ulrich Drepper  <drepper@redhat.com>
2
3         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Handle NO_WEAK_ALIAS.
4         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
5         Patch by Clint Adams.
6
7 ===================================================================
8 RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/sparc/sparc32/socket.S,v
9 retrieving revision 1.10
10 retrieving revision 1.11
11 diff -u -r1.10 -r1.11
12 --- libc/sysdeps/unix/sysv/linux/sparc/sparc32/socket.S 2003/08/31 17:23:11     1.10
13 +++ libc/sysdeps/unix/sysv/linux/sparc/sparc32/socket.S 2005/12/20 06:25:23     1.11
14 @@ -40,7 +40,11 @@
15     The .S files for the other calls just #define socket and #include this.  */
16  
17  #ifndef __socket
18 -#define __socket P(__,socket)
19 +# ifndef NO_WEAK_ALIAS
20 +#  define __socket P(__,socket)
21 +# else
22 +#  define __socket socket
23 +# endif
24  #endif
25  
26  .globl __socket
27 @@ -105,4 +109,6 @@
28  
29  END (__socket)
30  
31 +#ifndef NO_WEAK_ALIAS
32  weak_alias (__socket, socket)
33 +#endif
34 ===================================================================
35 RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/sparc/sparc64/socket.S,v
36 retrieving revision 1.4
37 retrieving revision 1.5
38 diff -u -r1.4 -r1.5
39 --- libc/sysdeps/unix/sysv/linux/sparc/sparc64/socket.S 2004/12/16 16:47:49     1.4
40 +++ libc/sysdeps/unix/sysv/linux/sparc/sparc64/socket.S 2005/12/20 06:25:24     1.5
41 @@ -40,7 +40,11 @@
42     The .S files for the other calls just #define socket and #include this.  */
43  
44  #ifndef __socket
45 -#define __socket P(__,socket)
46 +# ifndef NO_WEAK_ALIAS
47 +#  define __socket P(__,socket)
48 +# else
49 +#  define __socket socket
50 +# endif
51  #endif
52  
53  .globl __socket
54 @@ -107,4 +111,6 @@
55  
56  END (__socket)
57  
58 +#ifndef NO_WEAK_ALIAS
59  weak_alias (__socket, socket)
60 +#endif