X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fx86-darwin-os.c;h=1650517fc88798db799b0dfdd2ba50b477d3391f;hb=5dbc64f47b6106b196a0286f1c3e2c66c17ee14d;hp=4983871c6b3e662a4b90b38759927f8c5e2dc008;hpb=9772cd388bb89a311aa1d205359b421d9d12a3ff;p=sbcl.git diff --git a/src/runtime/x86-darwin-os.c b/src/runtime/x86-darwin-os.c index 4983871..1650517 100644 --- a/src/runtime/x86-darwin-os.c +++ b/src/runtime/x86-darwin-os.c @@ -254,14 +254,14 @@ void signal_emulation_wrapper(x86_thread_state32_t *thread_state, */ os_context_t *context; -#if __DARWIN_UNIX03 +#if MAC_OS_X_VERSION_10_5 struct __darwin_mcontext32 *regs; #else struct mcontext *regs; #endif context = (os_context_t*) os_validate(0, sizeof(os_context_t)); -#if __DARWIN_UNIX03 +#if MAC_OS_X_VERSION_10_5 regs = (struct __darwin_mcontext32*) os_validate(0, sizeof(struct __darwin_mcontext32)); #else regs = (struct mcontext*) os_validate(0, sizeof(struct mcontext)); @@ -285,7 +285,7 @@ void signal_emulation_wrapper(x86_thread_state32_t *thread_state, update_thread_state_from_context(thread_state, float_state, context); os_invalidate((os_vm_address_t)context, sizeof(os_context_t)); -#if __DARWIN_UNIX03 +#if MAC_OS_X_VERSION_10_5 os_invalidate((os_vm_address_t)regs, sizeof(struct __darwin_mcontext32)); #else os_invalidate((os_vm_address_t)regs, sizeof(struct mcontext));