diff --git a/classpath/java-lang.cpp b/classpath/java-lang.cpp index bc09cd89fe..855e6b5c60 100644 --- a/classpath/java-lang.cpp +++ b/classpath/java-lang.cpp @@ -638,6 +638,9 @@ Java_java_lang_System_getProperty(JNIEnv* e, jclass, jstring name, namespace { const char* environ[] = { 0 }; } +#elif defined __APPLE__ +# include +# define environ (*_NSGetEnviron()) #else extern char** environ; #endif