$NetBSD: patch-aa,v 1.2 2000/03/23 13:40:42 agc Exp $
 
--- server/localsendreceive.cc.orig	Mon Dec 13 03:34:42 1999
+++ server/localsendreceive.cc	Thu Mar 23 12:11:34 2000
@@ -1,14 +1,21 @@
 
+#if  !defined(__NetBSD__)
 #include <netinet/in.h>
 #include <arpa/inet.h>
-
-#include <sys/ioctl.h>
+#endif
 
 
+#include <stdio.h>
+#include <string.h>
+#include <sys/ioctl.h>
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <stdio.h>
+#include <sys/time.h>
+#include <sys/uio.h>
 #include <sys/un.h>
+#if defined(__sun__) && defined(__svr4__)
+#include <sys/filio.h>
+#endif
 #include <unistd.h>
 
 void DBaseSendReceive(char* the_address,char* str,char* buffer,int max,int receive)
