diff --git a/lib/pure/os.nim b/lib/pure/os.nim index a92b744848..0173858253 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: