You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2008/08/25 17:18:39 UTC
svn commit: r688752 -
/harmony/enhanced/drlvm/trunk/vm/port/src/crash_handler/linux/native_unwind_os.cpp
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)
{