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

index 78e8b03ccee8ad9f5c7cba499482b67727f47608..fcff6b490d3719c794e40ec959cad97d315133d4 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1998 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -31,8 +31,12 @@ Cambridge, MA 02139, USA.  */
 
    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.  */
        movl %ebx, %edx
@@ -56,6 +60,6 @@ ENTRY (P(__,socket))
        /* Successful; return the syscall's value.  */
        ret
 
-PSEUDO_END (P(__,socket))
+PSEUDO_END (__socket)
 
-weak_alias (P(__,socket), socket)
+weak_alias (__socket, socket)
index d0741afeb1386586899efd2c60e9290977b898dc..40a6f942b80e073378ddfa027e9a291294ee5062 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1998 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -31,8 +31,12 @@ Cambridge, MA 02139, USA.  */
 
    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)