mxcl/homebrew — pull request #9365 by derickl (2012-01-01 16:53:42+00:00)
Title: Small patch to fix PceEmacs on OSX

The default build of swi-prolog using homebrew or hand compilation brings up an 'undefined symbol' error when launching PceEmacs. Error shown here: https://gist.github.com/1547718

Reason:
OSX does not export 'environ' like other POSIX based OS's as shown
here: http://www.fastcgi.com/archives/fastcgi-developers/2009-January/000152.html.

So we need to explicitly check whether we are building on OSX and then
"import" import it from crt_extensions.h

It's a minor patch that wont affect swi-prolog's functionality.