From a009d219ac53f8b8a44cbc8d6c7c6ec517eca942 Mon Sep 17 00:00:00 2001 From: Ari Brown Date: Fri, 22 Feb 2008 16:33:23 -0500 Subject: [PATCH] Enabled rubinius to be built on Pre-Leopard Macs * fixed an #if in machine.h and nmc.h --- shotgun/lib/machine.h | 2 +- shotgun/lib/subtend/nmc.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shotgun/lib/machine.h b/shotgun/lib/machine.h index 8b934d1..78212fd 100644 --- a/shotgun/lib/machine.h +++ b/shotgun/lib/machine.h @@ -25,7 +25,7 @@ struct rubinius_machine { int show_config; ucontext_t g_firesuit; /* work around a bug in 10.5's libc versus header files */ -#if __DARWIN_UNIX03 +#if defined(__APPLE__) && defined(HAS_UCONTEXT) /* patch for tiger */ _STRUCT_MCONTEXT __system_mc; #endif int g_use_firesuit; diff --git a/shotgun/lib/subtend/nmc.h b/shotgun/lib/subtend/nmc.h index 5f3ff66..76ed977 100644 --- a/shotgun/lib/subtend/nmc.h +++ b/shotgun/lib/subtend/nmc.h @@ -18,11 +18,11 @@ struct rni_nmc { int jump_val; ucontext_t system; /* work around a bug in 10.5's libc versus header files */ -#if __DARWIN_UNIX03 +#if defined(__APPLE__) && defined(HAS_UCONTEXT) _STRUCT_MCONTEXT __system_mc; #endif ucontext_t cont; -#if __DARWIN_UNIX03 +#if defined(__APPLE__) && defined(HAS_UCONTEXT) _STRUCT_MCONTEXT __cont_mc; #endif -- 1.5.3.7