diff --git a/Source/cmStandardLexer.h b/Source/cmStandardLexer.h index 0cac8ad649..57982421bf 100644 --- a/Source/cmStandardLexer.h +++ b/Source/cmStandardLexer.h @@ -64,6 +64,11 @@ # define YY_NO_UNISTD_H 1 #endif +/* Make sure malloc and free are available on QNX. */ +#ifdef __QNX__ +# include +#endif + /* Disable features we do not need. */ #define YY_NEVER_INTERACTIVE 1 #define YY_NO_INPUT 1