Skip to content

Commit ec93c10

Browse files
BegasusOscarL
andcommitted
Revers changes for HAVE_STRUCT_DIRENT_D_TYPE
Co-authored-by: Oscar Lesta <oscar.lesta@gmail.com>
1 parent 7eea3e3 commit ec93c10

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/configfile.l

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,10 @@ int DBGetReaderListDir(const char *readerconf_dir,
301301
snprintf(filename, sizeof(filename), "%s/%s",
302302
readerconf_dir, direntry->d_name);
303303

304+
#ifdef HAVE_STRUCT_DIRENT_D_TYPE
304305
/* skip non regular files */
305306
if (direntry->d_type == DT_UNKNOWN)
307+
#endif
306308
{
307309
struct stat st;
308310

@@ -320,13 +322,15 @@ int DBGetReaderListDir(const char *readerconf_dir,
320322
continue;
321323
}
322324
}
325+
#ifdef HAVE_STRUCT_DIRENT_D_TYPE
323326
else
324327
if (direntry->d_type != DT_REG)
325328
{
326329
Log2(PCSC_LOG_DEBUG, "Skipping non regular file: %s",
327330
direntry->d_name);
328331
continue;
329332
}
333+
#endif
330334

331335
/* skip files starting with . like ., .., .svn, etc */
332336
if ('.' == direntry->d_name[0])

0 commit comments

Comments
 (0)