1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 23:07:59 +00:00

Fix freebsd compilation

This commit is contained in:
Christophe Dumez 2011-01-15 09:30:41 +00:00
parent ab8e35b6b4
commit cb719e2bf5
5 changed files with 16 additions and 3 deletions

6
configure vendored
View File

@ -346,6 +346,12 @@ public:
if(!conf->getenv("QC_ENABLE_DEBUG").isEmpty()) {
conf->addExtra("CONFIG += debug");
}
#ifdef Q_OS_FREEBSD
conf->addLib("-lexecinfo");
conf->addExtra("MANPREFIX = \$\$PREFIX");
#else
conf->addExtra("MANPREFIX = \$\$PREFIX/share");
#endif
return(QT_VERSION >= 0x040500);
}
};

View File

@ -21,6 +21,12 @@ public:
if(!conf->getenv("QC_ENABLE_DEBUG").isEmpty()) {
conf->addExtra("CONFIG += debug");
}
#ifdef Q_OS_FREEBSD
conf->addLib("-lexecinfo");
conf->addExtra("MANPREFIX = $$PREFIX");
#else
conf->addExtra("MANPREFIX = $$PREFIX/share");
#endif
return(QT_VERSION >= 0x040500);
}
};

View File

@ -12,7 +12,7 @@
#include <QSet>
#include <iostream>
#include <errno.h>
#ifdef Q_WS_MAC
#if defined(Q_WS_MAC) || defined(Q_OS_FREEBSD)
#include <sys/param.h>
#include <sys/mount.h>
#include <string.h>

View File

@ -60,7 +60,7 @@ const int UNLEN = 256;
#endif
#ifndef Q_WS_WIN
#ifdef Q_WS_MAC
#if defined(Q_WS_MAC) || defined(Q_OS_FREEBSD)
#include <sys/param.h>
#include <sys/mount.h>
#else

View File

@ -19,7 +19,8 @@ nox {
} else {
man.files = ../doc/qbittorrent.1
}
man.path = $$PREFIX/share/man/man1/
man.path = $$MANPREFIX/man/man1/
INSTALLS += man
# Menu Icon