harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r688752 - /harmony/enhanced/drlvm/trunk/vm/port/src/crash_handler/linux/native_unwind_os.cpp
Date Mon, 25 Aug 2008 15:18:39 GMT
Author: hindessm
Date: Mon Aug 25 08:18:38 2008
New Revision: 688752

URL: http://svn.apache.org/viewvc?rev=688752&view=rev
Log:
Make sure environ is defined correctly.

Modified:
    harmony/enhanced/drlvm/trunk/vm/port/src/crash_handler/linux/native_unwind_os.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/port/src/crash_handler/linux/native_unwind_os.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/port/src/crash_handler/linux/native_unwind_os.cpp?rev=688752&r1=688751&r2=688752&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/port/src/crash_handler/linux/native_unwind_os.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/port/src/crash_handler/linux/native_unwind_os.cpp Mon
Aug 25 08:18:38 2008
@@ -21,6 +21,12 @@
 #include "port_modules.h"
 #include "native_unwind.h"
 
+#if defined(MACOSX)
+#include <crt_externs.h>
+#define environ (*_NSGetEnviron())
+#else
+extern char** environ;
+#endif
 
 bool native_is_in_code(UnwindContext* context, void* ip)
 {



Mime
View raw message