Skip to content
Snippets Groups Projects
Commit 902e9707 authored by Freddy DISSAUX's avatar Freddy DISSAUX
Browse files

use d_type only if HAVE_STRUCT_DIR_D_TYPE

parent 3a607a98
No related branches found
No related tags found
No related merge requests found
......@@ -426,8 +426,10 @@ queue_fs_message_walk(uint64_t *evpid, char *buf, size_t len,
(void)snprintf(msgid_str, sizeof msgid_str, "%08" PRIx32, msgid);
while ((dp = readdir(dir)) != NULL) {
#if defined(HAVE_STRUCT_DIR_D_TYPE)
if (dp->d_type != DT_REG)
continue;
#endif
/* ignore files other than envelopes */
if (strlen(dp->d_name) != 16 ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment