]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Allow __socket to be redefined.
authorUlrich Drepper <drepper@redhat.com>
Wed, 21 Jan 1998 17:03:20 +0000 (17:03 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 21 Jan 1998 17:03:20 +0000 (17:03 +0000)
sysdeps/unix/sysv/linux/arm/socket.S
sysdeps/unix/sysv/linux/m68k/socket.S

index 4d877e51d57e3ffc8a7b563d2f7c7d4315021d00..1940061ddae2e76b78dcfa029e9b2c652f3fac12 100644 (file)
 
    The .S files for the other calls just #define socket and #include this.  */
 
-.globl P(__,socket)
-ENTRY (P(__,socket))
+#ifndef __socket
+#define __socket P(__,socket)
+#endif
+
+.globl __socket
+ENTRY (__socket)
 
         /* Do the system call trap.  */
        swi SYS_ify(socketcall)
@@ -44,6 +48,6 @@ ENTRY (P(__,socket))
        /* Successful; return the syscall's value.  */
        RETINSTR(mov,pc,r14)
 
-PSEUDO_END (P(__,socket))
+PSEUDO_END (__socket)
 
-weak_alias (P(__,socket), socket)
+weak_alias (__socket, socket)
index 51aaa4b6f9c9a3f1acd5ad1b5fd1a61c771f92d2..81e5a213dd5fffb7ca2e8c6acf3619bde47602fe 100644 (file)
 
    The .S files for the other calls just #define socket and #include this.  */
 
-.globl P(__,socket)
-ENTRY (P(__,socket))
+#ifndef __socket
+#define __socket P(__,socket)
+#endif
+
+.globl __socket
+ENTRY (__socket)
 
        /* Save registers.  */
        move.l %d2, %a0
@@ -56,6 +60,6 @@ ENTRY (P(__,socket))
 
        /* Successful; return the syscall's value.  */
        rts
-PSEUDO_END (P(__,socket))
+PSEUDO_END (__socket)
 
-weak_alias (P(__,socket), socket)
+weak_alias (__socket, socket)