diff options
author | stas <stas@FreeBSD.org> | 2010-04-01 16:45:10 +0800 |
---|---|---|
committer | stas <stas@FreeBSD.org> | 2010-04-01 16:45:10 +0800 |
commit | cad5d971f3ca93ac58d9590bb0d87500e6715c5d (patch) | |
tree | 9079d75786ee6bbb724021f8f1d37dc70a14ea0b | |
parent | 872356f299a61906aa3ee73705b377dd5a713600 (diff) | |
download | freebsd-ports-gnome-cad5d971f3ca93ac58d9590bb0d87500e6715c5d.tar.gz freebsd-ports-gnome-cad5d971f3ca93ac58d9590bb0d87500e6715c5d.tar.zst freebsd-ports-gnome-cad5d971f3ca93ac58d9590bb0d87500e6715c5d.zip |
- Fix boehmgc-redirect on powerpc.
-rw-r--r-- | devel/boehm-gc-redirect/files/patch-os_dep.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/devel/boehm-gc-redirect/files/patch-os_dep.c b/devel/boehm-gc-redirect/files/patch-os_dep.c index 910777fe2b47..985f52807d5d 100644 --- a/devel/boehm-gc-redirect/files/patch-os_dep.c +++ b/devel/boehm-gc-redirect/files/patch-os_dep.c @@ -1,5 +1,5 @@ ---- os_dep.c.orig 2008-02-29 22:01:28.000000000 +0300 -+++ os_dep.c 2009-10-20 00:48:39.000000000 +0400 +--- os_dep.c.orig 2008-02-29 11:01:28.000000000 -0800 ++++ os_dep.c 2010-04-01 00:50:34.000000000 -0700 @@ -816,7 +816,7 @@ || defined(HURD) || defined(NETBSD) static struct sigaction old_segv_act; @@ -27,3 +27,18 @@ /* Under Irix 5.x or HP/UX, we may get SIGBUS. */ /* Pthreads doesn't exist under Irix 5.x, so we */ /* don't have to worry in the threads case. */ +@@ -2713,7 +2713,13 @@ + # include <errno.h> + # if defined(FREEBSD) + # define SIG_OK TRUE +-# define CODE_OK (code == BUS_PAGE_FAULT) ++# if defined(POWERPC) ++# define AIM /* Pretend that we're AIM. */ ++# include <machine/trap.h> ++# define CODE_OK (code == EXC_DSI) ++# else ++# define CODE_OK (code == BUS_PAGE_FAULT) ++# endif + # elif defined(OSF1) + # define SIG_OK (sig == SIGSEGV) + # define CODE_OK (code == 2 /* experimentally determined */) |