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>
--- 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>
/**