[Pcsclite-git-commit] [PCSC] 01/01: configfile.l: Fix issue on SunOS

Ludovic Rousseau rousseau at moszumanska.debian.org
Wed Jun 1 13:40:06 UTC 2016


This is an automated email from the git hooks/post-receive script.

rousseau pushed a commit to branch master
in repository PCSC.

commit d707446143114f579e78e5d652946f142e28847a
Author: Richard PALO <richard at NetBSD.org>
Date:   Wed Jun 1 07:15:22 2016 +0200

    configfile.l: Fix issue on SunOS
    
    Update HAVE_STRUCT_DIRENT guard.
    The previous patch fa52ae4e1f1ae3c35596e9aedaa3ce30fc5ceef9 was not
    correct.
---
 src/configfile.l | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/configfile.l b/src/configfile.l
index 4e34ada..bfe5a51 100644
--- a/src/configfile.l
+++ b/src/configfile.l
@@ -310,15 +310,15 @@ int DBGetReaderListDir(const char *readerconf_dir,
 					continue;
 				}
 			}
-			else
 #ifdef HAVE_STRUCT_DIRENT_D_TYPE
+			else
 				if (direntry->d_type != DT_REG)
-#endif
 				{
 					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])

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/PCSC.git



More information about the Pcsclite-cvs-commit mailing list