--- old/src/hotspot/os/posix/os_posix.cpp 2018-07-10 15:42:57.642402770 -0400 +++ new/src/hotspot/os/posix/os_posix.cpp 2018-07-10 15:42:57.426390872 -0400 @@ -35,6 +35,7 @@ #include "utilities/macros.hpp" #include "utilities/vmError.hpp" +#include #include #include #include @@ -527,6 +528,21 @@ ::funlockfile(fp); } +DIR* os::opendir(const char* dirname) { + assert(dirname != NULL, "just checking"); + return ::opendir(dirname); +} + +struct dirent* os::readdir(DIR* dirp) { + assert(dirp != NULL, "just checking"); + return ::readdir(dirp); +} + +int os::closedir(DIR *dirp) { + assert(dirp != NULL, "just checking"); + return ::closedir(dirp); +} + // Builds a platform dependent Agent_OnLoad_ function name // which is used to find statically linked in agents. // Parameters: