From 0d1dc8a3310e88d0619a7b8d9203a2f071374554 Mon Sep 17 00:00:00 2001 From: Lauri Tirkkonen Date: Sat, 3 Jan 2015 16:20:57 +0200 Subject: [PATCH] don't depend on dirent DT_DIR --- src/input/path_input.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/input/path_input.cc b/src/input/path_input.cc index fa8afdaa..caf1e17b 100644 --- a/src/input/path_input.cc +++ b/src/input/path_input.cc @@ -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 += '/'; } };