diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2016-01-31 16:54:04 +0100 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2016-01-31 16:56:15 +0100 |
commit | 12799d0fc7dcff0dc95640b1efad0637ad011144 (patch) | |
tree | 54831cca5a963386a3c914adbf6cbdb946e10243 /System/Posix/Env | |
parent | 081376c3de398d21a6600b8615d189895d03d8ac (diff) |
Have Autoconf test for _NSGetEnviron presence
Diffstat (limited to 'System/Posix/Env')
-rw-r--r-- | System/Posix/Env/ByteString.hsc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/System/Posix/Env/ByteString.hsc b/System/Posix/Env/ByteString.hsc index 57b03aa..c6c374c 100644 --- a/System/Posix/Env/ByteString.hsc +++ b/System/Posix/Env/ByteString.hsc @@ -69,8 +69,8 @@ getEnvironmentPrim = do mapM B.packCString arr getCEnviron :: IO (Ptr CString) -#if darwin_HOST_OS --- You should not access _environ directly on Darwin in a bundle/shared library. +#if HAVE__NSGETENVIRON +-- You should not access @char **environ@ directly on Darwin in a bundle/shared library. -- See #2458 and http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man7/environ.7.html getCEnviron = nsGetEnviron >>= peek |