Browse Source

Clean up some issues for building on m68k.

David McCullough 23 years ago
parent
commit
0f54aa4d17
2 changed files with 2 additions and 7 deletions
  1. 1 1
      libc/inet/rpc/get_myaddress.c
  2. 1 6
      libc/inet/rpc/getrpcent.c

+ 1 - 1
libc/inet/rpc/get_myaddress.c

@@ -70,7 +70,7 @@ struct sockaddr_in *addr;
 /* 
  * don't use gethostbyname, which would invoke yellow pages
  */
-get_myaddress(addr)
+void get_myaddress(addr)
 struct sockaddr_in *addr;
 {
 	int s;

+ 1 - 6
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()