From 3096e0fbd9feff8cbf09b8d0b02fffb48e423eac Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Thu, 23 Mar 2017 10:59:58 +0200 Subject: 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 --- config.tests/common/alloca/alloca.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.tests') 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 +// extra include needed in QNX7 to define NULL for the alloca() macro +#include + int main(int, char **) { alloca(1); -- cgit v1.2.3