@@ -145,11 +145,14 @@ if (entry == NULL) { (void) closedir(dirp); return NULL; } +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" while (readdir64_r(dirp, entry, &dp) == 0 && dp != NULL) { +#pragma GCC diagnostic pop /* * Skip '.' and '..' (and possibly other .* files) */ if (dp->d_name[0] == '.') { continue;