don't depend on dirent DT_DIR

This commit is contained in:
Lauri Tirkkonen
2015-01-03 16:20:57 +02:00
parent 7343e33a6a
commit 0d1dc8a331
+4
View File
@@ -75,7 +75,11 @@ PathInput::pressed(int key) {
struct _transform_filename {
void operator () (utils::directory_entry& entry) {
#ifdef __sun__
if (entry.d_type & S_IFDIR)
#else
if (entry.d_type == DT_DIR)
#endif
entry.d_name += '/';
}
};