On 3 Mar 2004 at 14:07, Alan Stewart wrote: > Autrijus, I see the same fix in several places: > > #if defined(__APPLE__) && defined(__DYNAMIC__) > static char ** environ; > environ = *_NSGetEnviron(); > #else > extern char ** environ; > #endif > > I'm not a Mac user, so I can't check out the #ifdef values. I have also seen: > > #ifdef __darwin__ >
Here are the similar lines from the perl source: # if defined(__APPLE__) && defined(PERL_CORE) # include <crt_externs.h> /* for the env array */ # define environ (*_NSGetEnviron()) # endif which define environ rather than setting it. Alan Stewart
