From 0e7563952ed6fc57f0e64bcd27f5dc7080933ff2 Mon Sep 17 00:00:00 2001 From: Juan Jose Garcia Ripoll Date: Tue, 29 Sep 2009 17:04:11 +0200 Subject: [PATCH] Change needed for OS X 10.6 Leopard: ucontext.h is deprecated and produces an error. --- src/gc/mach_dep.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gc/mach_dep.c b/src/gc/mach_dep.c index 9b9080cd4..e7e5fcfa1 100644 --- a/src/gc/mach_dep.c +++ b/src/gc/mach_dep.c @@ -161,7 +161,11 @@ void GC_push_regs() #if !defined(HAVE_PUSH_REGS) && defined(UNIX_LIKE) # ifndef NO_GETCONTEXT -# include +# ifdef __APPLE__ +# include +# else +# include +# endif # endif #endif