Add patches for support Haiku (https://www.haiku-os.org)

This commit is contained in:
diger
2014-07-12 16:34:26 +06:00
parent 7419e930ab
commit c22190fbf7
4 changed files with 24 additions and 7 deletions

View File

@@ -16,7 +16,7 @@
#include <sys/param.h>
#include <sys/mount.h>
#include <string.h>
#else
#elif !defined Q_WS_HAIKU
#include <sys/vfs.h>
#endif
#endif
@@ -56,7 +56,7 @@ private:
QHash<QString, int> m_partialTorrents;
QPointer<QTimer> m_partialTorrentTimer;
#ifndef Q_OS_WIN
#if !defined Q_WS_WIN && !defined Q_WS_HAIKU
private:
static bool isNetworkFileSystem(QString path) {
QString file = path;
@@ -145,7 +145,7 @@ public:
}
void addPath(const QString & path) {
#ifndef Q_OS_WIN
#if !defined Q_WS_WIN && !defined Q_WS_HAIKU
QDir dir(path);
if (!dir.exists())
return;
@@ -167,7 +167,7 @@ public:
qDebug("FS Watching is watching %s in normal mode", qPrintable(path));
QFileSystemWatcher::addPath(path);
scanLocalFolder(path);
#ifndef Q_OS_WIN
#if !defined Q_WS_WIN && !defined Q_WS_HAIKU
}
#endif
}