changeset 4627:b8a1d30d6c65

7098394: JDK8 TL repo build fails in src/solaris/native/java/util/TimeZone_md.c Reviewed-by: chegar
author naoto
date Thu, 06 Oct 2011 17:40:16 -0700
parents ff5e57dc1fb3
children 2edaef22de23
files src/solaris/native/java/util/TimeZone_md.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/java/util/TimeZone_md.c	Thu Oct 06 12:15:07 2011 +0100
+++ b/src/solaris/native/java/util/TimeZone_md.c	Thu Oct 06 17:40:16 2011 -0700
@@ -122,7 +122,8 @@
         return NULL;
     }
 
-#if defined(__linux__) || (defined(__solaris__) && defined(_POSIX_PTHREAD_SEMANTICS))
+#if defined(__linux__) || (defined(__solaris__) && (defined(_POSIX_PTHREAD_SEMANTICS) || \
+                                                    defined(_LP64)))
     while (readdir_r(dirp, entry, &dp) == 0 && dp != NULL) {
 #else
     while ((dp = readdir_r(dirp, entry)) != NULL) {