--- old/src/share/vm/logging/logFileOutput.cpp 2016-09-29 15:57:16.943965257 -0700 +++ new/src/share/vm/logging/logFileOutput.cpp 2016-09-29 15:57:16.822956748 -0700 @@ -97,11 +97,7 @@ if (ret != 0) { return false; } -#ifdef _WINDOWS - return (st.st_mode & S_IFMT) == _S_IFREG; -#else - return S_ISREG(st.st_mode); -#endif + return (st.st_mode & S_IFMT) == S_IFREG; } // Try to find the next number that should be used for file rotation.