blob: 37d3a1d1ba2af81b303420627121e015650b11a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
$NetBSD: patch-aj,v 1.3 2011/08/21 22:57:55 tnn Exp $
--- jdk/src/solaris/native/java/net/NetworkInterface.c.orig 2011-08-11 12:31:36.000000000 +0000
+++ jdk/src/solaris/native/java/net/NetworkInterface.c
@@ -60,13 +60,11 @@
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/sockio.h>
-#if defined(__FreeBSD__) || defined(__APPLE__)
+#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__DragonFly__)
#include <net/ethernet.h>
#include <net/if_var.h>
-#elif defined(__OpenBSD__)
+#elif defined(__OpenBSD__) || defined(__NetBSD__)
#include <netinet/if_ether.h>
-#elif defined(__NetBSD__)
-#include <net/if_ether.h>
#endif
#include <net/if_dl.h>
#include <netinet/in_var.h>
|