summaryrefslogtreecommitdiff
path: root/libc/inet
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-29 16:08:24 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-29 16:08:24 +0000
commita6922771e35342784557be072e7c4fb9c0940556 (patch)
tree31629fa9c359076c9a48bf2e6ddf1d562adc93f7 /libc/inet
parent0abae2113b7acec76d54b84c7edd90ba13c34a0a (diff)
sync func def with glibc and dont include sys/socket.h since we dont use socket()
Diffstat (limited to 'libc/inet')
-rw-r--r--libc/inet/rpc/pm_getport.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libc/inet/rpc/pm_getport.c b/libc/inet/rpc/pm_getport.c
index fe3ed82f8..2fca57800 100644
--- a/libc/inet/rpc/pm_getport.c
+++ b/libc/inet/rpc/pm_getport.c
@@ -38,10 +38,11 @@ static char sccsid[] = "@(#)pmap_getport.c 1.9 87/08/11 Copyr 1984 Sun Micro";
* Copyright (C) 1984, Sun Microsystems, Inc.
*/
+#include <stdbool.h>
+#include <unistd.h>
#include <rpc/rpc.h>
#include <rpc/pmap_prot.h>
#include <rpc/pmap_clnt.h>
-#include <sys/socket.h>
libc_hidden_proto(clntudp_bufcreate)
libc_hidden_proto(__rpc_thread_createerr)
@@ -60,7 +61,11 @@ static const struct timeval tottimeout =
*/
libc_hidden_proto(pmap_getport)
u_short
-pmap_getport (struct sockaddr_in *address, u_long program, u_long version, u_int protocol)
+pmap_getport (address, program, version, protocol)
+ struct sockaddr_in *address;
+ u_long program;
+ u_long version;
+ u_int protocol;
{
u_short port = 0;
int socket = -1;