Selaa lähdekoodia

COMP: Add missing malloc.h include for QNX.

Brad King 19 vuotta sitten
vanhempi
sitoutus
1fec884bcb
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      Source/cmStandardLexer.h

+ 5 - 0
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