diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,6 +57,7 @@ if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po") ki18n_install(po) endif() +add_definitions(-DQT_NO_FOREACH) add_subdirectory( src ) if (BUILD_TESTING) add_subdirectory( autotests ) diff --git a/src/kpty.cpp b/src/kpty.cpp --- a/src/kpty.cpp +++ b/src/kpty.cpp @@ -85,7 +85,7 @@ class UtemptProcess : public QProcess { public: - virtual void setupChildProcess() override + void setupChildProcess() override { // These are the file descriptors the utempter helper wants dup2(cmdFd, 0);