summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-03-05 14:35:14 +0100
committerAndreas Rumpf <rumpf_a@web.de>2016-03-05 14:35:14 +0100
commitb55074ea6ecc71c37017618c9e39450009c10cee (patch)
tree474dd7b2c74346f9cac64d3ff95edaf3cba5efc4 /lib/pure
parentd5180bfb971817252e1bd3d2bdd90a66a9f4d4c8 (diff)
parentdca3daf4d441c98898c355d84399f78cd23a13f7 (diff)
downloadNim-b55074ea6ecc71c37017618c9e39450009c10cee.tar.gz
Merge pull request #3935 from yglukhov/ios-environ
Avoid using private _NSGetEnviron API on iOS.
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/os.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim
index a92b74484..017385825 100644
--- a/lib/pure/os.nim
+++ b/lib/pure/os.nim
@@ -671,7 +671,7 @@ when defined(windows):
 
 else:
   const
-    useNSGetEnviron = defined(macosx)
+    useNSGetEnviron = defined(macosx) and not defined(ios)
 
   when useNSGetEnviron:
     # From the manual: