summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorKonstantin Tokarev <annulen@yandex.ru>2012-03-01 16:57:34 (GMT)
committerKonstantin Tokarev <annulen@yandex.ru>2012-03-03 15:33:35 (GMT)
commita90d47890ffa4b029d40f6884d9bd6603297322b (patch)
tree02b53603d4bfb7f9755914e576bf85a600929983 /Source/cmSystemTools.cxx
parentac2979e4b36577e10b2180624050e600179a53da (diff)
downloadCMake-a90d47890ffa4b029d40f6884d9bd6603297322b.zip
CMake-a90d47890ffa4b029d40f6884d9bd6603297322b.tar.gz
CMake-a90d47890ffa4b029d40f6884d9bd6603297322b.tar.bz2
[OSX] Fixed undefined symbol when linking CMakeLib into shared library
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 15e689b..81ee5ce 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -104,6 +104,9 @@ public:
private:
HANDLE handle_;
};
+#elif defined(__APPLE__)
+#include <crt_externs.h>
+#define environ (*_NSGetEnviron())
#endif
bool cmSystemTools::s_RunCommandHideConsole = false;