fix OS X build regression

This commit is contained in:
Joel Dice 2012-04-06 16:52:24 -06:00
parent 2b4407a962
commit 2fedfdea5b

View File

@ -638,6 +638,9 @@ Java_java_lang_System_getProperty(JNIEnv* e, jclass, jstring name,
namespace {
const char* environ[] = { 0 };
}
#elif defined __APPLE__
# include <crt_externs.h>
# define environ (*_NSGetEnviron())
#else
extern char** environ;
#endif