summaryrefslogtreecommitdiff
path: root/native/jni/java-net/java_net_VMNetworkInterface.c
diff options
context:
space:
mode:
Diffstat (limited to 'native/jni/java-net/java_net_VMNetworkInterface.c')
-rw-r--r--native/jni/java-net/java_net_VMNetworkInterface.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/native/jni/java-net/java_net_VMNetworkInterface.c b/native/jni/java-net/java_net_VMNetworkInterface.c
index 31e020509..658299733 100644
--- a/native/jni/java-net/java_net_VMNetworkInterface.c
+++ b/native/jni/java-net/java_net_VMNetworkInterface.c
@@ -52,6 +52,12 @@ exception statement from your version. */
#include <net/if.h>
#include <sys/ioctl.h>
+/* Required on Solaris. */
+#include <unistd.h>
+
+#ifdef HAVE_SYS_SOCKIO_H
+# include <sys/sockio.h>
+#endif
#include <jni.h>
#include <jcl.h>