summaryrefslogtreecommitdiffstats
path: root/Source/kwsys
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-03-16 15:49:58 (GMT)
committerBrad King <brad.king@kitware.com>2005-03-16 15:49:58 (GMT)
commit6b43d78dae60a44e9464b8dead6b2347b21e3ab6 (patch)
tree97ae07418c230dd195bcce1255dd726fb07d2dd8 /Source/kwsys
parent74ec81ca3fb83acfec6cfd0a972e93870d3565d3 (diff)
downloadCMake-6b43d78dae60a44e9464b8dead6b2347b21e3ab6.zip
CMake-6b43d78dae60a44e9464b8dead6b2347b21e3ab6.tar.gz
CMake-6b43d78dae60a44e9464b8dead6b2347b21e3ab6.tar.bz2
COMP: Only include malloc.h on QNX.
Diffstat (limited to 'Source/kwsys')
-rw-r--r--Source/kwsys/SystemTools.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index d2f138f..eb86837 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -25,7 +25,9 @@
#include <ctype.h>
#include <errno.h>
-#include <malloc.h> /* for malloc/free on some systems */
+#ifdef QNX /* TODO: Find real preprocessor for QNX. */
+# include <malloc.h> /* for malloc/free on some systems */
+#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>