aboutsummaryrefslogtreecommitdiff
path: root/src/os/aix/vm/os_aix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/aix/vm/os_aix.cpp')
-rw-r--r--src/os/aix/vm/os_aix.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/os/aix/vm/os_aix.cpp b/src/os/aix/vm/os_aix.cpp
index b03ce2458..717f692c2 100644
--- a/src/os/aix/vm/os_aix.cpp
+++ b/src/os/aix/vm/os_aix.cpp
@@ -4184,8 +4184,7 @@ bool os::dir_is_empty(const char* path) {
/* 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;
}