summaryrefslogtreecommitdiff
path: root/libc/inet/rpc/getrpcent.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inet/rpc/getrpcent.c')
-rw-r--r--libc/inet/rpc/getrpcent.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libc/inet/rpc/getrpcent.c b/libc/inet/rpc/getrpcent.c
index 00e67ee6b..31bb6c087 100644
--- a/libc/inet/rpc/getrpcent.c
+++ b/libc/inet/rpc/getrpcent.c
@@ -36,6 +36,7 @@
*/
#include <stdio.h>
+#include <string.h>
#include <sys/types.h>
#include <rpc/rpc.h>
#include <netdb.h>
@@ -60,12 +61,6 @@ static struct rpcent *interpret(const char *val, int len);
struct hostent *gethostent();
char *inet_ntoa();
-#ifndef __linux__
-static char *index();
-#else
-char *index();
-#endif
-
static char RPCDB[] = "/etc/rpc";
static struct rpcdata *_rpcdata()