$NetBSD: patch-af,v 1.1 2002/12/12 03:17:15 dmcmahill Exp $

hit with big hammer.  Unfortunately awk.h #define's proc which
breaks 'struct proc' so we make sure we pull all that stuff in first.

--- io.c.orig	Tue Apr 16 07:57:44 2002
+++ io.c
@@ -23,6 +23,38 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
  */
 
+#ifdef __NetBSD__
+#include <sys/types.h>
+#include <sys/param.h>
+#include <sys/ioctl.h>
+#include <sys/socket.h>
+#include <sys/stat.h>
+#include <sys/wait.h>
+
+#include <netinet/in.h>
+#include <netinet/in_systm.h>
+#include <netinet/ip.h>
+
+#include <arpa/ftp.h>
+#include <arpa/inet.h>
+
+#include <ctype.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <limits.h>
+#include <netdb.h>
+#include <pwd.h>
+#include <setjmp.h>
+#include <signal.h>
+#include <stdarg.h>
+#include <stddef.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <termios.h>
+#include <unistd.h>
+#endif
+
 #include "awk.h"
 
 #ifdef HAVE_SYS_PARAM_H
