changeset 20815:17caeb034a63

[SPARC] Backport of JDK-8071501
author Stefan Anzinger <stefan.anzinger@oracle.com>
date Wed, 08 Apr 2015 19:08:09 +0200
parents 3accde838126
children 6f8d03da5d08
files src/os/solaris/vm/jvm_solaris.h src/share/vm/utilities/globalDefinitions_sparcWorks.hpp
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/os/solaris/vm/jvm_solaris.h	Wed Apr 08 18:05:23 2015 +0200
+++ b/src/os/solaris/vm/jvm_solaris.h	Wed Apr 08 19:08:09 2015 +0200
@@ -40,8 +40,9 @@
  * This file is currently collecting system-specific dregs for the
  * JNI conversion, which should be sorted out later.
  */
-
+#define __USE_LEGACY_PROTOTYPES__
 #include <dirent.h>             /* For DIR */
+#undef __USE_LEGACY_PROTOTYPES__
 #include <sys/param.h>          /* For MAXPATHLEN */
 #include <sys/socket.h>         /* For socklen_t */
 #include <unistd.h>             /* For F_OK, R_OK, W_OK */
--- a/src/share/vm/utilities/globalDefinitions_sparcWorks.hpp	Wed Apr 08 18:05:23 2015 +0200
+++ b/src/share/vm/utilities/globalDefinitions_sparcWorks.hpp	Wed Apr 08 19:08:09 2015 +0200
@@ -33,7 +33,9 @@
 
 
 # include <ctype.h>
+#define __USE_LEGACY_PROTOTYPES__
 # include <dirent.h>
+#undef __USE_LEGACY_PROTOTYPES__
 # include <string.h>
 # include <strings.h>     // for bsd'isms
 # include <stdarg.h>