Richard Todd <[EMAIL PROTECTED]> writes: > > +#if defined(__APPLE__) && defined(__DYNAMIC__) > +#include<crt_externs.h> > +static char ** environ; > +#else > extern char ** environ; > +#endif > > #ifdef HAVE_GRP_H > #include <grp.h> > @@ -1735,6 +1740,10 @@ > void > scm_init_posix () > { > +#if defined(__APPLE__) && defined(__DYNAMIC__) > + environ = *_NSGetEnviron(); > +#endif > +
That's really weird. I'd rather not do that if it can be avoided. Surely they can't expect every library that accesses environ to get a system-specific change? Does it work to take the declaration of environ from <stdlib.h> instead of giving an explicit "extern"? The autoconf way is normally to let the headers do the job where possible. _______________________________________________ Bug-guile mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-guile