openbsd-ports/devel/boehm-gc/patches/patch-mach_dep_c
kili 1dd9afdf52 Update to 7.0.
Most work done by kurt@, who got bleeding eyes and has been trapped
into pthread issues because some of us (me and Stuart Henderson)
were slopyy and applied some patches only partial. A big sorry to
kurt@ for this waste of time!

Tested by many. Intermediate ok's (IIRC) from kurt@, naddy@ and todd@.
2007-07-14 22:16:16 +00:00

22 lines
826 B
Plaintext

$OpenBSD: patch-mach_dep_c,v 1.4 2007/07/14 22:16:17 kili Exp $
--- mach_dep.c.orig Wed Jul 11 12:46:22 2007
+++ mach_dep.c Wed Jul 11 12:58:50 2007
@@ -159,7 +159,7 @@ void GC_push_regs()
# undef HAVE_PUSH_REGS
#endif
-#if !defined(HAVE_PUSH_REGS) && defined(UNIX_LIKE)
+#if !defined(HAVE_PUSH_REGS) && defined(UNIX_LIKE) && !defined(OPENBSD)
# include <ucontext.h>
#endif
@@ -174,7 +174,7 @@ void GC_with_callee_saves_pushed(void (*fn)(ptr_t, voi
# 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(OPENBSD)
/* Older versions of Darwin seem to lack getcontext(). */
/* ARM Linux often doesn't support a real getcontext(). */
ucontext_t ctxt;