$NetBSD$

--- emulate/ether.cc.orig	Tue Feb  8 23:35:12 2000
+++ emulate/ether.cc
@@ -39,4 +39,7 @@ static const char rcsid[] =
 #endif
 #endif
+
+#include "config.h"
+
 #include <stdio.h>
 #include <string.h>
@@ -44,7 +47,17 @@ static const char rcsid[] =
 #include <sys/socket.h>
 #include <sys/ioctl.h>
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+#ifdef HAVE_NET_IF_H
+#include <net/if.h>
+#endif
+#ifdef HAVE_NET_ETHERNET_H
 #include <net/ethernet.h>
+#endif
+#ifdef HAVE_NETINET_IF_ETHER_H
+#include <netinet/if_ether.h>
+#endif
 
-#include "config.h"
 #include "ether.h"
 
