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
+1 -1
View File
@@ -38,7 +38,7 @@
#include <unistd.h> #include <unistd.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/termios.h> #include <termios.h>
#include <torrent/exceptions.h> #include <torrent/exceptions.h>
#include "canvas.h" #include "canvas.h"
+2 -11
View File
@@ -41,16 +41,11 @@
#include <rak/functional.h> #include <rak/functional.h>
#include <rak/path.h> #include <rak/path.h>
#include <dirent.h>
#include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <torrent/utils/log.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" #include "path_input.h"
namespace input { namespace input {
@@ -80,11 +75,7 @@ PathInput::pressed(int key) {
struct _transform_filename { struct _transform_filename {
void operator () (utils::directory_entry& entry) { void operator () (utils::directory_entry& entry) {
#ifdef __sun__
if (entry.d_type & S_IFDIR)
#else
if (entry.d_type == DT_DIR) if (entry.d_type == DT_DIR)
#endif
entry.d_name += '/'; entry.d_name += '/';
} }
}; };
+1 -1
View File
@@ -37,7 +37,7 @@
#ifndef RTORRENT_SIGNAL_HANDLER_H #ifndef RTORRENT_SIGNAL_HANDLER_H
#define RTORRENT_SIGNAL_HANDLER_H #define RTORRENT_SIGNAL_HANDLER_H
#include <sys/signal.h> #include <signal.h>
#include <tr1/functional> #include <tr1/functional>
class SignalHandler { class SignalHandler {
+2 -4
View File
@@ -38,14 +38,12 @@
#include <algorithm> #include <algorithm>
#include <functional> #include <functional>
#include <dirent.h> #include <dirent.h>
#include <sys/stat.h>
#include <rak/path.h> #include <rak/path.h>
#include <torrent/exceptions.h> #include <torrent/exceptions.h>
#ifdef __sun__
#include <sys/stat.h>
#endif
#include "directory.h" #include "directory.h"
namespace utils { namespace utils {