1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-25 18:05:20 +02:00

Use proper feature test macro for d_type support

This commit is contained in:
Maarten ter Huurne 2014-08-14 06:10:55 +02:00
parent 56beec0895
commit 404b2a1029

View File

@ -94,7 +94,7 @@ void FileLister::browse(const string& path, bool clean)
} }
bool isDir; bool isDir;
#ifdef DT_DIR #ifdef _DIRENT_HAVE_D_TYPE
if (dptr->d_type != DT_UNKNOWN) { if (dptr->d_type != DT_UNKNOWN) {
isDir = dptr->d_type == DT_DIR; isDir = dptr->d_type == DT_DIR;
} else } else