about summary refs log tree commit diff
path: root/inet
diff options
context:
space:
mode:
Diffstat (limited to 'inet')
-rw-r--r--inet/ether_hton.c1
-rw-r--r--inet/ether_ntoh.c1
-rw-r--r--inet/rexec.c6
3 files changed, 5 insertions, 3 deletions
diff --git a/inet/ether_hton.c b/inet/ether_hton.c
index c4149a0616..4e24fbb89f 100644
--- a/inet/ether_hton.c
+++ b/inet/ether_hton.c
@@ -19,6 +19,7 @@
 
 #include <netinet/ether.h>
 #include <netinet/if_ether.h>
+#include <string.h>
 
 #include "../nss/nsswitch.h"
 
diff --git a/inet/ether_ntoh.c b/inet/ether_ntoh.c
index 61bc0f1de6..93c2cf8b2a 100644
--- a/inet/ether_ntoh.c
+++ b/inet/ether_ntoh.c
@@ -19,6 +19,7 @@
 
 #include <netinet/ether.h>
 #include <netinet/if_ether.h>
+#include <string.h>
 
 #include "../nss/nsswitch.h"
 
diff --git a/inet/rexec.c b/inet/rexec.c
index 7533410eb3..f4772475fd 100644
--- a/inet/rexec.c
+++ b/inet/rexec.c
@@ -43,12 +43,12 @@ static char sccsid[] = "@(#)rexec.c	8.1 (Berkeley) 6/4/93";
 #include <stdio.h>
 #include <netdb.h>
 #include <errno.h>
+#include <string.h>
+#include <unistd.h>
 
-extern	errno;
-char	*index();
 int	rexecoptions;
-char	*getpass(), *getlogin();
 
+int
 rexec(ahost, rport, name, pass, cmd, fd2p)
 	char **ahost;
 	int rport;