summaryrefslogtreecommitdiffstats
path: root/Source/cmStandardLexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmStandardLexer.h')
-rw-r--r--Source/cmStandardLexer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmStandardLexer.h b/Source/cmStandardLexer.h
index 0cac8ad..5798242 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 <malloc.h>
+#endif
+
/* Disable features we do not need. */
#define YY_NEVER_INTERACTIVE 1
#define YY_NO_INPUT 1