
3 Jun
2004
3 Jun
'04
6:41 a.m.
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