diff options
Diffstat (limited to 'libc/inet/rpc/bindresvport.c')
-rw-r--r-- | libc/inet/rpc/bindresvport.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libc/inet/rpc/bindresvport.c b/libc/inet/rpc/bindresvport.c index 6a6f385cd..e08994df6 100644 --- a/libc/inet/rpc/bindresvport.c +++ b/libc/inet/rpc/bindresvport.c @@ -1,6 +1,3 @@ -static char sccsid[] = - - "@(#)bindresvport.c 2.2 88/07/29 4.0 RPCSRC 1.8 88/02/08 SMI"; /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for * unrestricted use provided that this legend is included on all tape @@ -34,6 +31,8 @@ static char sccsid[] = * Copyright (c) 1987 by Sun Microsystems, Inc. */ +#include <unistd.h> +#include <string.h> #include <sys/types.h> #include <sys/errno.h> #include <sys/socket.h> @@ -42,7 +41,7 @@ static char sccsid[] = /* * Bind a socket to a privileged IP port */ -bindresvport(sd, sin) +int bindresvport(sd, sin) int sd; struct sockaddr_in *sin; { |