8207748: Fix for 8202794 breaks tier1 builds
authorbpb
Tue, 17 Jul 2018 16:22:26 -0700
changeset 51108 54106907e72e
parent 51107 35e64b62b284
child 51109 6c5b01529873
8207748: Fix for 8202794 breaks tier1 builds Reviewed-by: kbarrett, darcy
src/jdk.management/unix/native/libmanagement_ext/OperatingSystemImpl.c
--- a/src/jdk.management/unix/native/libmanagement_ext/OperatingSystemImpl.c	Tue Jul 17 17:14:03 2018 -0400
+++ b/src/jdk.management/unix/native/libmanagement_ext/OperatingSystemImpl.c	Tue Jul 17 16:22:26 2018 -0700
@@ -75,6 +75,7 @@
 #endif /* _ALLBSD_SOURCE */
 
 #if defined(_ALLBSD_SOURCE)
+  #define dirent64 dirent
   #define readdir64 readdir
 #endif
 
@@ -422,7 +423,7 @@
     return (100);
 #else /* solaris/linux */
     DIR *dirp;
-    struct dirent* dentp;
+    struct dirent64* dentp;
     jlong fds = 0;
 
 #if defined(_AIX)