summaryrefslogtreecommitdiffstats
path: root/config.tests
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2017-03-23 10:59:58 +0200
committerSamuli Piippo <samuli.piippo@qt.io>2017-04-05 05:02:42 +0000
commit3096e0fbd9feff8cbf09b8d0b02fffb48e423eac (patch)
tree21be5becd30fb3951d2282ab1f3cca2bd970b8f7 /config.tests
parentce2771c71c6679a020ae66ac6602e04621a66a8f (diff)
qnx: make alloca config test pass on QNX 7
Test failed on QNX 7, even though alloca is available. On QNX7, it's a macro that expands to a line with NULL, but without define for it. alloca.cpp:44:5: error: 'NULL' was not declared in this scope Task-number: QTBUG-59700 Change-Id: I3631d139990020a3adbab8b72e49929b6e721e80 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'config.tests')
-rw-r--r--config.tests/common/alloca/alloca.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.tests/common/alloca/alloca.cpp b/config.tests/common/alloca/alloca.cpp
index 566ee5651a..d839b381ef 100644
--- a/config.tests/common/alloca/alloca.cpp
+++ b/config.tests/common/alloca/alloca.cpp
@@ -39,6 +39,9 @@
#include <alloca.h>
+// extra include needed in QNX7 to define NULL for the alloca() macro
+#include <stdlib.h>
+
int main(int, char **)
{
alloca(1);