openbsd-ports/lang/gcc/4.2/patches/patch-boehm-gc_mach_dep_c
kurt 1094d158a8 - enable dwarf2 exceptions (w/major bump for libestdc++)
- add gcj support for i386, amd64 and sparc64
- add MODGCC4_LANGS=java support to gcc4.port.mk
okay robert@
2009-06-04 18:24:20 +00:00

22 lines
778 B
Plaintext

$OpenBSD: patch-boehm-gc_mach_dep_c,v 1.1 2009/06/04 18:24:20 kurt Exp $
--- boehm-gc/mach_dep.c.orig Mon Mar 16 17:49:33 2009
+++ boehm-gc/mach_dep.c Mon Mar 16 17:51:42 2009
@@ -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. */