diff options
author | Kimmo Ollila <kimmo.ollila@qt.io> | 2017-01-11 11:00:13 +0200 |
---|---|---|
committer | Kimmo Ollila <kimmo.ollila@theqtcompany.com> | 2017-01-13 07:52:16 +0000 |
commit | 01cade50509de392f06e6f5ee939421a576e06c1 (patch) | |
tree | a7f3078efe96f824c88d38de4df009426f39b1ec /src/testlib/qtestcase.cpp | |
parent | 2f08a1d6146ab3529baad839eb9dbfc1a1182720 (diff) |
Fix build for INTEGRITY
Change-Id: I2c41295688e962eb263f2180bebfd1dd37613804
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'src/testlib/qtestcase.cpp')
-rw-r--r-- | src/testlib/qtestcase.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp index e250d36e12..7485941c0f 100644 --- a/src/testlib/qtestcase.cpp +++ b/src/testlib/qtestcase.cpp @@ -99,7 +99,9 @@ #include <errno.h> #include <signal.h> #include <time.h> -#include <sys/resource.h> +# if !defined(Q_OS_INTEGRITY) +# include <sys/resource.h> +# endif #endif #if defined(Q_OS_MACX) @@ -186,7 +188,7 @@ static void disableCoreDump() bool ok = false; const int disableCoreDump = qEnvironmentVariableIntValue("QTEST_DISABLE_CORE_DUMP", &ok); if (ok && disableCoreDump == 1) { -#if defined(Q_OS_UNIX) +#if defined(Q_OS_UNIX) && !defined(Q_OS_INTEGRITY) struct rlimit limit; limit.rlim_cur = 0; limit.rlim_max = 0; |