summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2019-02-13 15:11:42 +0100
committerAndré Klitzing <aklitzing@gmail.com>2019-02-13 14:54:15 +0000
commit064d81173cb52c2779686406ee7bd87fdda8301a (patch)
treedafb509105037167fe2a2b78d77463a546336af8
parentbe187fbdc65b41531eee7fed63567d6d05f58b52 (diff)
downloadqttools-064d81173cb52c2779686406ee7bd87fdda8301a.tar.gz
Add <sys/wait.h> include to fix build of FreeBSD
../shared/runqttool.cpp:96:16: error: use of undeclared identifier 'WEXITSTATUS' exitCode = WEXITSTATUS(ret); Change-Id: I96aa0324f3749702323217e5cf7f7570c80424a2 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
-rw-r--r--src/linguist/shared/runqttool.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/linguist/shared/runqttool.cpp b/src/linguist/shared/runqttool.cpp
index a2bf5d438..e36a3a2a8 100644
--- a/src/linguist/shared/runqttool.cpp
+++ b/src/linguist/shared/runqttool.cpp
@@ -37,6 +37,10 @@
#include <cstdlib>
#include <iostream>
+#ifdef Q_OS_UNIX
+#include <sys/wait.h>
+#endif
+
class FMT {
Q_DECLARE_TR_FUNCTIONS(Linguist)
};