diff options
author | Brad King <brad.king@kitware.com> | 2006-08-24 18:58:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-08-24 18:58:22 (GMT) |
commit | 0bd4649fe6c5867c6232658f2c2a9d224a57c113 (patch) | |
tree | 9d1b826d7669cd77fbc4cc4a20d6f4e82a66867a /Source/cmCommandArgumentParser.y | |
parent | 3ef750a42c8423ba5389175c6e000779d08b135e (diff) | |
download | CMake-0bd4649fe6c5867c6232658f2c2a9d224a57c113.zip CMake-0bd4649fe6c5867c6232658f2c2a9d224a57c113.tar.gz CMake-0bd4649fe6c5867c6232658f2c2a9d224a57c113.tar.bz2 |
COMP: Added missing include for malloc on QNX.
Diffstat (limited to 'Source/cmCommandArgumentParser.y')
-rw-r--r-- | Source/cmCommandArgumentParser.y | 5 |
1 files changed, 5 insertions, 0 deletions
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 <malloc.h> +#endif + /* Make sure the parser uses standard memory allocation. The default generated parser malloc/free declarations do not work on all platforms. */ |