openbsd-ports/lang/gcc/4.7/patches/patch-boehm-gc_mach_dep_c
pascal f2b393605c Import gcc 4.7.
ok espie@
2012-04-23 15:56:40 +00:00

22 lines
784 B
Plaintext

$OpenBSD: patch-boehm-gc_mach_dep_c,v 1.1.1.1 2012/04/23 15:56:41 pascal Exp $
--- boehm-gc/mach_dep.c.orig Wed Jan 25 04:03:14 2006
+++ boehm-gc/mach_dep.c Tue Nov 22 14:12:40 2011
@@ -27,7 +27,7 @@
# endif
# endif
-#if defined(RS6000) || defined(POWERPC)
+#if (defined(RS6000) || defined(POWERPC)) && !defined(OPENBSD)
# include <ucontext.h>
#endif
@@ -417,7 +417,7 @@ ptr_t arg;
/* the stack. */
__builtin_unwind_init();
# else /* !HAVE_BUILTIN_UNWIND_INIT */
-# if defined(RS6000) || defined(POWERPC)
+# if (defined(RS6000) || defined(POWERPC)) && !defined(OPENBSD)
/* FIXME: RS6000 means AIX. */
/* This should probably be used in all Posix/non-gcc */
/* settings. We defer that change to minimize risk. */