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:
parent
ab8e35b6b4
commit
cb719e2bf5
6
configure
vendored
6
configure
vendored
@ -346,6 +346,12 @@ public:
|
|||||||
if(!conf->getenv("QC_ENABLE_DEBUG").isEmpty()) {
|
if(!conf->getenv("QC_ENABLE_DEBUG").isEmpty()) {
|
||||||
conf->addExtra("CONFIG += debug");
|
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);
|
return(QT_VERSION >= 0x040500);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -21,6 +21,12 @@ public:
|
|||||||
if(!conf->getenv("QC_ENABLE_DEBUG").isEmpty()) {
|
if(!conf->getenv("QC_ENABLE_DEBUG").isEmpty()) {
|
||||||
conf->addExtra("CONFIG += debug");
|
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);
|
return(QT_VERSION >= 0x040500);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#include <QSet>
|
#include <QSet>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#ifdef Q_WS_MAC
|
#if defined(Q_WS_MAC) || defined(Q_OS_FREEBSD)
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -60,7 +60,7 @@ const int UNLEN = 256;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef Q_WS_WIN
|
#ifndef Q_WS_WIN
|
||||||
#ifdef Q_WS_MAC
|
#if defined(Q_WS_MAC) || defined(Q_OS_FREEBSD)
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
#else
|
#else
|
||||||
|
@ -19,7 +19,8 @@ nox {
|
|||||||
} else {
|
} else {
|
||||||
man.files = ../doc/qbittorrent.1
|
man.files = ../doc/qbittorrent.1
|
||||||
}
|
}
|
||||||
man.path = $$PREFIX/share/man/man1/
|
|
||||||
|
man.path = $$MANPREFIX/man/man1/
|
||||||
INSTALLS += man
|
INSTALLS += man
|
||||||
|
|
||||||
# Menu Icon
|
# Menu Icon
|
||||||
|
Loading…
Reference in New Issue
Block a user