$NetBSD: patch-ab,v 1.2 2026/06/20 11:13:44 nia Exp $

--- main.c.orig	2000-02-03 11:08:48.000000000 +0000
+++ main.c
@@ -10,9 +10,7 @@
 #include <sys/types.h>	       /* needed by sys/socket.h and netinet/in.h */
 #include <sys/uio.h>	       /* for struct iovec, used by socket.h */
 #include <sys/socket.h>	       /* for AF_INET, SOCK_STREAM, ... */
-#ifdef AIXV3
 #include <sys/select.h>        /* for fd_set, ... */
-#endif
 #include <sys/ioctl.h>	       /* for FIONCLEX, FIONBIO, ... */
 #if defined(SVR4) && defined(sun)
 # include <sys/filio.h>	       /* for FIONCLEX, etc on Solaris */
@@ -35,6 +33,7 @@
 #ifdef SYSV
 #include <fcntl.h>
 #endif
+#include <unistd.h>
 
 #include "xmond.h"
 #include "select_args.h"
@@ -76,7 +75,6 @@ extern char *getenv();
 #endif
 
 extern char *getenv();
-extern int gethostname P((char *name, int namelen ));
 
 /* end function prototypes */
 
