Author: yamakenz
Date: Wed Jul 18 19:09:56 2007
New Revision: 4747

Modified:
   libgcroots-trunk/mach_dep.c

Log:
* mach_dep.c
  - (GC_with_callee_saves_pushed): Add HAVE_GETCONTEXT in
    addition to !defined(DARWIN) && !defined(ARM32)


Modified: libgcroots-trunk/mach_dep.c
==============================================================================
--- libgcroots-trunk/mach_dep.c (original)
+++ libgcroots-trunk/mach_dep.c Wed Jul 18 19:09:56 2007
@@ -175,7 +175,8 @@
 
 #   if defined(HAVE_PUSH_REGS)
       GC_push_regs();
-#   elif defined(UNIX_LIKE) && !defined(DARWIN) && !defined(ARM32)
+#   elif defined(UNIX_LIKE) && HAVE_GETCONTEXT \
+                && !defined(DARWIN) && !defined(ARM32)
       /* Older versions of Darwin seem to lack getcontext(). */
       /* ARM Linux often doesn't support a real getcontext(). */
       ucontext_t ctxt;

Reply via email to