--- old/src/hotspot/os/linux/os_linux.cpp 2018-07-10 15:42:54.282217687 -0400 +++ new/src/hotspot/os/linux/os_linux.cpp 2018-07-10 15:42:54.066205789 -0400 @@ -5371,8 +5371,7 @@ // Scan the directory bool result = true; - char buf[sizeof(struct dirent) + MAX_PATH]; - while (result && (ptr = ::readdir(dir)) != NULL) { + while (result && (ptr = readdir(dir)) != NULL) { if (strcmp(ptr->d_name, ".") != 0 && strcmp(ptr->d_name, "..") != 0) { result = false; }