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:
parent
56beec0895
commit
404b2a1029
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user