Sophie

Sophie

distrib > Fedora > 16 > x86_64 > by-pkgid > 47921639530ea925393a4fa145bcaca3 > files > 4

fatrat-1.2.0-0.5.beta1.fc16.src.rpm

Compilation fails with GCC 4.7 on Fedora 17. This patch resolves it.

Author: Jan Vcelak <jvcelak@redhat.com>

diff a/src/poller/EpollPoller.cpp b/src/poller/EpollPoller.cpp
--- a/src/poller/EpollPoller.cpp
+++ b/src/poller/EpollPoller.cpp
@@ -30,6 +30,7 @@ respects for all of the code used other
 #include <sys/epoll.h>
 #include <errno.h>
 #include <alloca.h>
+#include <unistd.h>
 
 EpollPoller::EpollPoller(QObject* parent)
 	: Poller(parent)
diff a/src/Queue.cpp b/src/Queue.cpp
--- a/src/Queue.cpp
+++ b/src/Queue.cpp
@@ -30,6 +30,7 @@ respects for all of the code used other
 #include "QueueMgr.h"
 #include "Settings.h"
 #include "engines/PlaceholderTransfer.h"
+#include <unistd.h>
 #include <QList>
 #include <QReadWriteLock>
 #include <QDir>