diff --git a/std/process.d b/std/process.d index 1cb2264f6d3..7faf8498343 100644 --- a/std/process.d +++ b/std/process.d @@ -146,23 +146,7 @@ private // POSIX API declarations. version (Posix) { - version (Darwin) - { - extern(C) char*** _NSGetEnviron() nothrow; - const(char**) getEnvironPtr() @trusted - { - return *_NSGetEnviron; - } - } - else - { - // Made available by the C runtime: - extern(C) extern __gshared const char** environ; - const(char**) getEnvironPtr() @trusted - { - return environ; - } - } + import core.sys.posix.unistd : getEnvironPtr = environ; @system unittest {