diff options
author | marcel <marcel@FreeBSD.org> | 2009-11-23 04:46:38 +0800 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2009-11-23 04:46:38 +0800 |
commit | 5c6da94266b565e1a0ed2f491f3c15ce2fcc0ae8 (patch) | |
tree | 8b2a42af0d21c2d53df44b8dae99ada2ad282db7 /lang/guile | |
parent | d2a76712676bddcbe1bc279df40e9fdb8f06fd70 (diff) | |
download | freebsd-ports-gnome-5c6da94266b565e1a0ed2f491f3c15ce2fcc0ae8.tar.gz freebsd-ports-gnome-5c6da94266b565e1a0ed2f491f3c15ce2fcc0ae8.tar.zst freebsd-ports-gnome-5c6da94266b565e1a0ed2f491f3c15ce2fcc0ae8.zip |
Fix build for ia64.
No response from: maintainer (amatus@gnu.org)
Diffstat (limited to 'lang/guile')
-rw-r--r-- | lang/guile/files/patch-libguile_gc.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lang/guile/files/patch-libguile_gc.c b/lang/guile/files/patch-libguile_gc.c new file mode 100644 index 000000000000..6701de773a0c --- /dev/null +++ b/lang/guile/files/patch-libguile_gc.c @@ -0,0 +1,23 @@ +--- libguile/gc.c.orig 2008-12-08 09:42:54.000000000 -0800 ++++ libguile/gc.c 2009-08-20 22:55:11.000000000 -0700 +@@ -1060,6 +1060,20 @@ + return (void *) ctx->uc_mcontext.sc_ar_bsp; + } + # endif /* linux */ ++# ifdef __FreeBSD__ ++# include <ucontext.h> ++void * ++scm_ia64_register_backing_store_base (void) ++{ ++ return (void *)0x8000000000000000; ++} ++void * ++scm_ia64_ar_bsp (const void *opaque) ++{ ++ const ucontext_t *ctx = opaque; ++ return (void *)(ctx->uc_mcontext.mc_special.bspstore + ctx->uc_mcontext.mc_special.ndirty); ++} ++# endif /* __FreeBSD__ */ + #endif /* __ia64__ */ + + void |