Browse Source

COMP: Added missing includes. This partially addresses bug#3556.

Brad King 19 years ago
parent
commit
658d38e0af
2 changed files with 12 additions and 0 deletions
  1. 6 0
      Source/cmCPluginAPI.cxx
  2. 6 0
      Source/cmLoadCommandCommand.cxx

+ 6 - 0
Source/cmCPluginAPI.cxx

@@ -24,6 +24,12 @@
 
 #include "cmSourceFile.h"
 
+#include <stdlib.h>
+
+#ifdef __QNX__
+# include <malloc.h> /* for malloc/free on QNX */
+#endif
+
 extern "C"
 {
 

+ 6 - 0
Source/cmLoadCommandCommand.cxx

@@ -21,6 +21,12 @@
 
 #include <cmsys/DynamicLoader.hxx>
 
+#include <stdlib.h>
+
+#ifdef __QNX__
+# include <malloc.h> /* for malloc/free on QNX */
+#endif
+
 #include <signal.h>
 extern "C" void TrapsForSignalsCFunction(int sig);