Browse Source

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

Brad King 19 năm trước cách đây
mục cha
commit
658d38e0af
2 tập tin đã thay đổi với 12 bổ sung0 xóa
  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);