7098394: JDK8 TL repo build fails in src/solaris/native/java/util/TimeZone_md.c
authornaoto
Thu, 06 Oct 2011 17:40:16 -0700
changeset 10702 2481dfbdc5d1
parent 10701 2c8dde454979
child 10703 5e4b04df89ec
7098394: JDK8 TL repo build fails in src/solaris/native/java/util/TimeZone_md.c Reviewed-by: chegar
jdk/src/solaris/native/java/util/TimeZone_md.c
--- a/jdk/src/solaris/native/java/util/TimeZone_md.c	Thu Oct 06 12:15:07 2011 +0100
+++ b/jdk/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) {