From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-06-03 01:41:08


Michael LaSpina wrote:
> Oops, my original patch was incorrect, in shared libraries on Darwin one
> must call _NSGetEnviron() to get the current environment. Changing
>
> static char** environ = *_NSGetEnviron();
>
> to
>
> #define environ (*_NSGetEnviron())
>
> cleared up the problem on my end.

Interesting, I though _NSGetEnviron returns the pointer to the same
environment which is modified by putenv...

Thanks for solving this problem! I've comitted the change from variable to
define.

Thanks,
Volodya