On 3 Mar 2004 at 16:22, H. Wade Minter wrote:

> Just tried to build it on MacOS X 10.3 and got a compile error.  The
> problem does NOT exist in 0.79_98.
> 


> main.c: In function `main':
> main.c:132: error: `environ' undeclared (first use in this function)

This was a fix to get environment modification/passing right, but I see googling 
around 
that Mac doesn't define environ (several projects complaining).

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__

Wade, perhaps you can try these. The 0.79_99 definition of environ is near the 
beginning of env.c.

Alan Stewart

Reply via email to