6835668: Use of /usr/include/linux/ files creates a dependence on kernel-headers
authormichaelm
Thu, 24 Feb 2011 18:35:17 +0000
changeset 8549 b924a92a7c84
parent 8548 130426abe301
child 8550 b85bf4406dfb
6835668: Use of /usr/include/linux/ files creates a dependence on kernel-headers Reviewed-by: chegar
jdk/src/solaris/native/java/net/NetworkInterface.c
jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c
jdk/src/solaris/native/java/net/PlainSocketImpl.c
--- a/jdk/src/solaris/native/java/net/NetworkInterface.c	Thu Feb 24 13:42:10 2011 +0000
+++ b/jdk/src/solaris/native/java/net/NetworkInterface.c	Thu Feb 24 18:35:17 2011 +0000
@@ -45,7 +45,6 @@
 #ifdef __linux__
 #include <sys/ioctl.h>
 #include <bits/ioctls.h>
-#include <linux/sockios.h>
 #include <sys/utsname.h>
 #include <stdio.h>
 #endif
--- a/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c	Thu Feb 24 13:42:10 2011 +0000
+++ b/jdk/src/solaris/native/java/net/PlainDatagramSocketImpl.c	Thu Feb 24 18:35:17 2011 +0000
@@ -34,8 +34,8 @@
 #include <fcntl.h>
 #endif
 #ifdef __linux__
-#include <linux/unistd.h>
-#include <linux/sysctl.h>
+#include <unistd.h>
+#include <sys/sysctl.h>
 #include <sys/utsname.h>
 #include <netinet/ip.h>
 
--- a/jdk/src/solaris/native/java/net/PlainSocketImpl.c	Thu Feb 24 13:42:10 2011 +0000
+++ b/jdk/src/solaris/native/java/net/PlainSocketImpl.c	Thu Feb 24 18:35:17 2011 +0000
@@ -42,8 +42,8 @@
 #include <fcntl.h>
 #endif
 #ifdef __linux__
-#include <linux/unistd.h>
-#include <linux/sysctl.h>
+#include <unistd.h>
+#include <sys/sysctl.h>
 #endif
 
 #include "jvm.h"