--- old/src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c 2020-05-20 18:01:37.127938711 -0700 +++ new/src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c 2020-05-20 18:01:36.787932182 -0700 @@ -41,17 +41,10 @@ #endif #include -/* For POSIX-compliant getpwuid_r, getgrgid_r on Solaris */ -#if defined(__solaris__) -#define _POSIX_PTHREAD_SEMANTICS -#endif +/* For POSIX-compliant getpwuid_r */ #include #include -#ifdef __solaris__ -#include -#endif - #ifdef __linux__ #include #endif @@ -263,8 +256,7 @@ /* system calls that might not be available at run time */ -#if (defined(__solaris__) && defined(_LP64)) || defined(_ALLBSD_SOURCE) - /* Solaris 64-bit does not have openat64/fstatat64 */ +#if defined(_ALLBSD_SOURCE) my_openat64_func = (openat64_func*)dlsym(RTLD_DEFAULT, "openat"); my_fstatat64_func = (fstatat64_func*)dlsym(RTLD_DEFAULT, "fstatat"); #else