Skip to content

Commit

Permalink
Do not use HAVE_STRUCT_DIRENT_D_TYPE
Browse files Browse the repository at this point in the history
It was introduced in 2016 to fix a compilatin error on SunOS.
See fa52ae4
  • Loading branch information
LudovicRousseau committed May 5, 2024
1 parent 61a96b2 commit 31a545a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/configfile.l
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,7 @@ int DBGetReaderListDir(const char *readerconf_dir,
readerconf_dir, direntry->d_name);

/* skip non regular files */
#ifdef HAVE_STRUCT_DIRENT_D_TYPE
if (direntry->d_type == DT_UNKNOWN)
#endif
{
struct stat st;

Expand All @@ -322,15 +320,13 @@ int DBGetReaderListDir(const char *readerconf_dir,
continue;
}
}
#ifdef HAVE_STRUCT_DIRENT_D_TYPE
else
if (direntry->d_type != DT_REG)
{
Log2(PCSC_LOG_DEBUG, "Skipping non regular file: %s",
direntry->d_name);
continue;
}
#endif

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

0 comments on commit 31a545a

Please sign in to comment.