mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-17 21:45:20 +02:00
Use proper feature test macro for d_type support
This commit is contained in:
parent
56beec0895
commit
404b2a1029
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user