From 5798fb959d134143d3d47dbd28227f7c5fd09696 Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Sat, 13 Jun 2015 09:20:16 +0300 Subject: [PATCH] Fix qbittorrent-nox compilation. --- src/app/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index 22a1f5157..da0ddfc6b 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -33,6 +33,7 @@ #include #ifndef DISABLE_GUI +// GUI-only includes #include #include #include @@ -47,8 +48,13 @@ Q_IMPORT_PLUGIN(QICOPlugin) Q_IMPORT_PLUGIN(qico) #endif #endif // QBT_STATIC_QT -#else // DISABLE_GUI + +#else +// NoGUI-only includes #include +#ifdef Q_OS_UNIX +#include "unistd.h" +#endif #endif // DISABLE_GUI #ifdef Q_OS_UNIX