--- old/src/hotspot/os/aix/os_aix.cpp 2018-07-10 15:42:48.509899732 -0400 +++ new/src/hotspot/os/aix/os_aix.cpp 2018-07-10 15:42:48.321889375 -0400 @@ -3731,8 +3731,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; }