Browse Source

COMP: Add missing malloc.h include for QNX.

Brad King 19 years ago
parent
commit
1fec884bcb
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Source/cmStandardLexer.h

+ 5 - 0
Source/cmStandardLexer.h

@@ -64,6 +64,11 @@
 # define YY_NO_UNISTD_H 1
 # define YY_NO_UNISTD_H 1
 #endif
 #endif
 
 
+/* Make sure malloc and free are available on QNX.  */
+#ifdef __QNX__
+# include <malloc.h>
+#endif
+
 /* Disable features we do not need. */
 /* Disable features we do not need. */
 #define YY_NEVER_INTERACTIVE 1
 #define YY_NEVER_INTERACTIVE 1
 #define YY_NO_INPUT 1
 #define YY_NO_INPUT 1