summaryrefslogtreecommitdiff
path: root/libc/inet/rpc/bindresvport.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inet/rpc/bindresvport.c')
-rw-r--r--libc/inet/rpc/bindresvport.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libc/inet/rpc/bindresvport.c b/libc/inet/rpc/bindresvport.c
index 1fb80d701..530df52b3 100644
--- a/libc/inet/rpc/bindresvport.c
+++ b/libc/inet/rpc/bindresvport.c
@@ -30,6 +30,8 @@
* Copyright (c) 1987 by Sun Microsystems, Inc.
*/
+#define bind __bind
+
#define __FORCE_GLIBC
#include <features.h>
@@ -43,8 +45,8 @@
/*
* Bind a socket to a privileged IP port
*/
-int
-bindresvport (int sd, struct sockaddr_in *sin)
+int attribute_hidden
+__bindresvport (int sd, struct sockaddr_in *sin)
{
int res;
static short port;
@@ -86,3 +88,4 @@ bindresvport (int sd, struct sockaddr_in *sin)
return res;
}
+strong_alias(__bindresvport,bindresvport)