summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-09-10 19:40:11 (GMT)
committerBrad King <brad.king@kitware.com>2002-09-10 19:40:11 (GMT)
commit14f021185829d70840f3e000fba08496f9f8f26d (patch)
tree310ae2880c4376fdf4d4ec2e1a6c32124db5da37
parentce65c54d7a61947ee7b566dc8e7cca9fbc30da2c (diff)
downloadCMake-14f021185829d70840f3e000fba08496f9f8f26d.zip
CMake-14f021185829d70840f3e000fba08496f9f8f26d.tar.gz
CMake-14f021185829d70840f3e000fba08496f9f8f26d.tar.bz2
ENH: Added definition of _BSD_SOURCE to enable proper use of POSIX functions on comeau in linux.
-rw-r--r--Source/cmStandardIncludes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index 224e196..b1dd8ac 100644
--- a/Source/cmStandardIncludes.h
+++ b/Source/cmStandardIncludes.h
@@ -27,6 +27,10 @@
#include "cmConfigure.h"
#endif
+#if !defined(_WIN32) && defined(__COMO__)
+# define _BSD_SOURCE
+#endif
+
#ifdef _MSC_VER
#pragma warning ( disable : 4786 )
#pragma warning ( disable : 4503 )