pkgsrc-ng/net/ns/patches/patch-ai
2013-09-26 17:14:40 +02:00

32 lines
644 B
Plaintext

$NetBSD: patch-ai,v 1.1.1.1 2002/08/27 08:07:07 seb Exp $
--- 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"