7100054: (porting) Native code should include fcntl.h and unistd.h rather than sys/fcntl.h and sys/unistd.h
authorngmr
Thu, 13 Oct 2011 12:30:51 +0100
changeset 10794 bd50e71b4d0f
parent 10793 2f0744d6ca41
child 10795 39d94a6eb53a
child 10888 1aa4710eb4f6
7100054: (porting) Native code should include fcntl.h and unistd.h rather than sys/fcntl.h and sys/unistd.h Summary: Use POSIX defined includes for unistd.h and fcntl.h Reviewed-by: dholmes, alanb, chegar, ngmr Contributed-by: Charles Lee <littlee@linux.vnet.ibm.com>
jdk/src/solaris/native/sun/nio/fs/genSolarisConstants.c
jdk/src/solaris/native/sun/nio/fs/genUnixConstants.c
--- a/jdk/src/solaris/native/sun/nio/fs/genSolarisConstants.c	Thu Oct 20 09:26:20 2011 +0100
+++ b/jdk/src/solaris/native/sun/nio/fs/genSolarisConstants.c	Thu Oct 13 12:30:51 2011 +0100
@@ -27,7 +27,7 @@
 #include <errno.h>
 #include <unistd.h>
 #include <sys/acl.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>
 #include <sys/stat.h>
 
 /**
--- a/jdk/src/solaris/native/sun/nio/fs/genUnixConstants.c	Thu Oct 20 09:26:20 2011 +0100
+++ b/jdk/src/solaris/native/sun/nio/fs/genUnixConstants.c	Thu Oct 13 12:30:51 2011 +0100
@@ -26,7 +26,7 @@
 #include <stdio.h>
 #include <errno.h>
 #include <unistd.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>
 #include <sys/stat.h>
 
 /**