From 0bd4649fe6c5867c6232658f2c2a9d224a57c113 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 24 Aug 2006 14:58:22 -0400 Subject: COMP: Added missing include for malloc on QNX. --- Source/cmCommandArgumentParser.cxx | 5 +++++ Source/cmCommandArgumentParser.y | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Source/cmCommandArgumentParser.cxx b/Source/cmCommandArgumentParser.cxx index 5ad1688..d7b8df9 100644 --- a/Source/cmCommandArgumentParser.cxx +++ b/Source/cmCommandArgumentParser.cxx @@ -138,6 +138,11 @@ Modify cmCommandArgumentParser.cxx: cmCommandArgumentError(yyscanner, x) #define yyGetParser (cmCommandArgument_yyget_extra(yyscanner)) +/* Make sure malloc and free are available on QNX. */ +#ifdef __QNX__ +# include +#endif + /* Make sure the parser uses standard memory allocation. The default generated parser malloc/free declarations do not work on all platforms. */ diff --git a/Source/cmCommandArgumentParser.y b/Source/cmCommandArgumentParser.y index 06fd84a..5b10234 100644 --- a/Source/cmCommandArgumentParser.y +++ b/Source/cmCommandArgumentParser.y @@ -38,6 +38,11 @@ Modify cmCommandArgumentParser.cxx: cmCommandArgumentError(yyscanner, x) #define yyGetParser (cmCommandArgument_yyget_extra(yyscanner)) +/* Make sure malloc and free are available on QNX. */ +#ifdef __QNX__ +# include +#endif + /* Make sure the parser uses standard memory allocation. The default generated parser malloc/free declarations do not work on all platforms. */ -- cgit v0.12