summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPort.h
diff options
context:
space:
mode:
Diffstat (limited to 'unix/tclUnixPort.h')
-rw-r--r--unix/tclUnixPort.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h
index f64d453..93c101f 100644
--- a/unix/tclUnixPort.h
+++ b/unix/tclUnixPort.h
@@ -544,7 +544,11 @@ extern int errno;
*---------------------------------------------------------------------------
*/
-#if defined(__APPLE__) && defined(__DYNAMIC__)
+#ifdef __APPLE__
+#include "TargetConditionals.h"
+#endif
+
+#if defined(__APPLE__) && defined(__DYNAMIC__) && TARGET_OS_MAC
# include <crt_externs.h>
# define environ (*_NSGetEnviron())
# define USE_PUTENV 1