From 404b2a102912c67c165abfc0a059954f994ee9ef Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Thu, 14 Aug 2014 06:10:55 +0200 Subject: [PATCH] Use proper feature test macro for d_type support --- src/filelister.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filelister.cpp b/src/filelister.cpp index a0bc106..baa275e 100644 --- a/src/filelister.cpp +++ b/src/filelister.cpp @@ -94,7 +94,7 @@ void FileLister::browse(const string& path, bool clean) } bool isDir; -#ifdef DT_DIR +#ifdef _DIRENT_HAVE_D_TYPE if (dptr->d_type != DT_UNKNOWN) { isDir = dptr->d_type == DT_DIR; } else