diff options
author | Geoff Norton <grompf@sublimeintervention.com> | 2009-07-23 05:28:12 +0400 |
---|---|---|
committer | Geoff Norton <grompf@sublimeintervention.com> | 2009-07-23 05:28:12 +0400 |
commit | af21a3e74c6e49c1e28edada233d815b10eb3fd7 (patch) | |
tree | 61c232f4505ffef2c9edd9d6add5b6047dcac0d1 /libgc/darwin_stop_world.c | |
parent | 9763e79a27ef488c803cfec00ea032104dff5b12 (diff) |
2009-07-20 Geoff Norton <gnorton@novell.com>
* darwin_stop_world.c: Fix the x86 version guards to use Apple's
properly defined macros.
svn path=/trunk/mono/; revision=138477
Diffstat (limited to 'libgc/darwin_stop_world.c')
-rw-r--r-- | libgc/darwin_stop_world.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libgc/darwin_stop_world.c b/libgc/darwin_stop_world.c index f9ba57c02b6..0c85c005729 100644 --- a/libgc/darwin_stop_world.c +++ b/libgc/darwin_stop_world.c @@ -2,6 +2,7 @@ # if defined(GC_DARWIN_THREADS) +#include <AvailabilityMacros.h> #include "mono/utils/mono-compiler.h" #ifdef MONO_DEBUGGER_SUPPORTED @@ -111,7 +112,8 @@ void GC_push_all_stacks() { if(r != KERN_SUCCESS) ABORT("thread_get_state failed"); #if defined(I386) -#if defined(_STRUCT_X86_EXCEPTION_STATE32) +#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 + lo = state.__esp; GC_push_one(state.__eax); @@ -356,7 +358,7 @@ void GC_push_all_stacks() { (natural_t *)&info, &outCount); if(r != KERN_SUCCESS) continue; -#if defined(_STRUCT_X86_EXCEPTION_STATE32) +#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5 lo = (void*)info.__esp; hi = (ptr_t)FindTopOfStack(info.__esp); |