summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorYuriy Glukhov <yutiy.glukhov@gmail.com>2016-03-05 14:18:36 +0200
committerYuriy Glukhov <yutiy.glukhov@gmail.com>2016-03-05 14:18:36 +0200
commitdca3daf4d441c98898c355d84399f78cd23a13f7 (patch)
tree3c7103434cdd2fb2d7f80c238bf168d62344adfd /lib/pure
parent1d443cec8d5b5e7bd7d73b005527e6224cd2346a (diff)
downloadNim-dca3daf4d441c98898c355d84399f78cd23a13f7.tar.gz
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: