tags 672031 + patch thanks On 08/05/12 20:57, Matthias Klose wrote: > The build failure is exposed by building with gcc-4.7/g++-4.7, > which is now the default gcc/g++ on x86 architectures.
Please find attached a patch to fix this FTBFS. Regards -- Sebastian Ramacher
Index: fatrat-1.1.3/src/poller/EpollPoller.cpp =================================================================== --- fatrat-1.1.3.orig/src/poller/EpollPoller.cpp 2012-05-12 21:44:58.000000000 +0200 +++ fatrat-1.1.3/src/poller/EpollPoller.cpp 2012-05-12 21:44:58.000000000 +0200 @@ -30,6 +30,7 @@ #include <sys/epoll.h> #include <errno.h> #include <alloca.h> +#include <unistd.h> EpollPoller::EpollPoller(QObject* parent) : Poller(parent) Index: fatrat-1.1.3/src/engines/CurlDownload.cpp =================================================================== --- fatrat-1.1.3.orig/src/engines/CurlDownload.cpp 2010-09-06 11:43:46.000000000 +0200 +++ fatrat-1.1.3/src/engines/CurlDownload.cpp 2012-05-12 21:48:35.000000000 +0200 @@ -45,6 +45,7 @@ #include <QtDebug> #include <iostream> #include <errno.h> +#include <unistd.h> CurlDownload::CurlDownload() : m_curl(0), m_nTotal(0), m_nStart(0), m_bAutoName(false), m_nUrl(0), m_file(0) Index: fatrat-1.1.3/src/engines/RapidshareFreeDownload.cpp =================================================================== --- fatrat-1.1.3.orig/src/engines/RapidshareFreeDownload.cpp 2010-09-06 11:43:46.000000000 +0200 +++ fatrat-1.1.3/src/engines/RapidshareFreeDownload.cpp 2012-05-12 21:52:53.000000000 +0200 @@ -36,6 +36,7 @@ #include <QApplication> #include <QMessageBox> #include <QMutex> +#include <unistd.h> static QMutex m_mInstanceActive;
signature.asc
Description: OpenPGP digital signature