[Gc] [PATCH] GNU/Hurd has no getcontext()

Samuel Thibault samuel.thibault at ens-lyon.org
Wed Aug 8 16:32:44 PDT 2007


Hi,

Unfortunately GNU/Hurd has no getcontext(), here is a patch:

diff -u -p -r1.5 mach_dep.c
--- mach_dep.c  2 Jul 2007 17:17:46 -0000       1.5
+++ mach_dep.c  8 Aug 2007 23:31:12 -0000
@@ -174,7 +174,7 @@ void GC_with_callee_saves_pushed(void (*

 #   if defined(HAVE_PUSH_REGS)
       GC_push_regs();
-#   elif defined(UNIX_LIKE) && !defined(DARWIN) && !defined(ARM32)
+#   elif defined(UNIX_LIKE) && !defined(DARWIN) && !defined(ARM32) && !defined(__GNU__)
       /* Older versions of Darwin seem to lack getcontext(). */
       /* ARM Linux often doesn't support a real getcontext(). */
       ucontext_t ctxt;

Samuel


More information about the Gc mailing list