diff src/os/solaris/vm/jvm_solaris.h @ 20815:17caeb034a63

[SPARC] Backport of JDK-8071501
author Stefan Anzinger <stefan.anzinger@oracle.com>
date Wed, 08 Apr 2015 19:08:09 +0200
parents 11c26bfcf8c7
children
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 */