mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-14 13:16:17 +00:00
Fixed non-POSIX conformant included headers.
This commit is contained in:
@@ -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
@@ -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 += '/';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user