On Mon, Oct 03, 2005 at 08:40:53PM -0700, Blair Zajac wrote:
> 
> The only thing I found was that the new ruby.c expects that Unix-like 
> OSs have a char **environ that it can use to get the environment to link 
> $0 to the process name.  My 10.3 box does not have environ, so I just 
> #ifdef'd this code out, so it matches the code in 1.8.2.

The missing _environ symbol is a common problem when porting to OS
X. Here's the standard patch used in several other fink packages:

+#ifdef __APPLE__
+#include <crt_externs.h>
+#define environ (*_NSGetEnviron())
+#else
 extern char **environ;
+#endif

Guess we should add this to the doc/porting webpage.

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to