Fixed non-POSIX conformant included headers.

This commit is contained in:
rakshasa
2014-04-18 22:27:13 +09:00
parent d9f6f5aef4
commit 82a68420f4
4 changed files with 6 additions and 17 deletions
+2 -11
View File
@@ -41,16 +41,11 @@
#include <rak/functional.h>
#include <rak/path.h>
#include <dirent.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <torrent/utils/log.h>
#ifdef __sun__
#include <dirent.h>
#include <sys/stat.h>
#else
#include <sys/dir.h>
#endif
#include "path_input.h"
namespace input {
@@ -80,11 +75,7 @@ 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 += '/';
}
};