src/os/bsd/vm/os_bsd.cpp

changeset 9756
2be326848943
parent 9637
eef07cd490d4
parent 9711
0f2fe7d37d8c
child 9931
fd44df5e3bc3
equal deleted inserted replaced
9707:b87dc103bf45 9756:2be326848943
3955 dir = opendir(path); 3955 dir = opendir(path);
3956 if (dir == NULL) return true; 3956 if (dir == NULL) return true;
3957 3957
3958 /* Scan the directory */ 3958 /* Scan the directory */
3959 bool result = true; 3959 bool result = true;
3960 char buf[sizeof(struct dirent) + MAX_PATH]; 3960 while (result && (ptr = readdir(dir)) != NULL) {
3961 while (result && (ptr = ::readdir(dir)) != NULL) {
3962 if (strcmp(ptr->d_name, ".") != 0 && strcmp(ptr->d_name, "..") != 0) { 3961 if (strcmp(ptr->d_name, ".") != 0 && strcmp(ptr->d_name, "..") != 0) {
3963 result = false; 3962 result = false;
3964 } 3963 }
3965 } 3964 }
3966 closedir(dir); 3965 closedir(dir);

mercurial