diff --git a/development/lyxserver/server_monitor.cpp b/development/lyxserver/server_monitor.cpp index 21eb4194fe..dc4f15d05a 100644 --- a/development/lyxserver/server_monitor.cpp +++ b/development/lyxserver/server_monitor.cpp @@ -41,6 +41,9 @@ #include #include #include +#if QT_VERSION >= 0x050000 +#include +#endif #include "server_monitor.h" diff --git a/development/lyxserver/server_monitor.h b/development/lyxserver/server_monitor.h index 32d035e448..5f8c628f98 100644 --- a/development/lyxserver/server_monitor.h +++ b/development/lyxserver/server_monitor.h @@ -13,6 +13,7 @@ #include #include +#include #include #include diff --git a/development/lyxserver/server_monitor.pro b/development/lyxserver/server_monitor.pro index c10e19dd98..934b176778 100644 --- a/development/lyxserver/server_monitor.pro +++ b/development/lyxserver/server_monitor.pro @@ -1,2 +1,4 @@ +CONFIG += console HEADERS += server_monitor.h SOURCES += server_monitor.cpp +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets