summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-08-01 18:31:24 (GMT)
committerBrad King <brad.king@kitware.com>2006-08-01 18:31:24 (GMT)
commit658d38e0af541ef9347eaba5c1aa7430573023e4 (patch)
tree21f3e1c341cabac9b6d41e4e447c1870dba02aa5
parent9b2b2b5f1b463cb20f576aad903341dab5bf3373 (diff)
downloadCMake-658d38e0af541ef9347eaba5c1aa7430573023e4.zip
CMake-658d38e0af541ef9347eaba5c1aa7430573023e4.tar.gz
CMake-658d38e0af541ef9347eaba5c1aa7430573023e4.tar.bz2
COMP: Added missing includes. This partially addresses bug#3556.
-rw-r--r--Source/cmCPluginAPI.cxx6
-rw-r--r--Source/cmLoadCommandCommand.cxx6
2 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index a184ece..a03a70a 100644
--- a/Source/cmCPluginAPI.cxx
+++ b/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"
{
diff --git a/Source/cmLoadCommandCommand.cxx b/Source/cmLoadCommandCommand.cxx
index e13449c..fe73ee8 100644
--- a/Source/cmLoadCommandCommand.cxx
+++ b/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);