Hi,

In message "Re: [ ruby-Bugs-2715 ] [PATCH] 1.8.3 ruby.c doesn't compile on OS X due to missing char **environ"
    on Tue, 25 Oct 2005 15:09:54 +0900, noreply / rubyforge.org writes:

|I'm working on getting Ruby 1.8.3 into Fink, the Debian style
|package managed system for Mac OS X.
|
|Ruby 1.8.3 introduced the usage of the
|
|extern char **environ;
|
|in ruby.c.
|
|Mac OS X does not have this symbol, which you can confirm by greping
|through /usr/include and nm on the /usr/lib/*.
|
|The work around is to do something like this:

I'm not sure if it's OK to replace environ by _NSGetEnviron() since
this code assumes UNIX style environment variable memory map.  Could
anyone confirm this is OK or not for Mac OS X?

							matz.