diff options
author | arved <arved@FreeBSD.org> | 2007-07-06 20:34:08 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2007-07-06 20:34:08 +0800 |
commit | 5c255480993684d9d720a491d33d69e34d79bf4b (patch) | |
tree | 74a3189bd88f3c3ff98771001902fddb2af5fcda /textproc | |
parent | a093db9a4a2804432b010ed9767be1ff4b858269 (diff) | |
download | freebsd-ports-gnome-5c255480993684d9d720a491d33d69e34d79bf4b.tar.gz freebsd-ports-gnome-5c255480993684d9d720a491d33d69e34d79bf4b.tar.zst freebsd-ports-gnome-5c255480993684d9d720a491d33d69e34d79bf4b.zip |
Fix build with gcc4
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/ruby-xtemplate/Makefile | 4 | ||||
-rw-r--r-- | textproc/ruby-xtemplate/files/patch-xt.c | 16 |
2 files changed, 16 insertions, 4 deletions
diff --git a/textproc/ruby-xtemplate/Makefile b/textproc/ruby-xtemplate/Makefile index c3f55ed3e231..1fabf749ccf2 100644 --- a/textproc/ruby-xtemplate/Makefile +++ b/textproc/ruby-xtemplate/Makefile @@ -28,10 +28,6 @@ DOCS_EN= CHANGES README STATUS TUTORIAL .include <bsd.port.pre.mk> -.if ${OSVERSION} >= 700042 -BROKEN= Does not compile with GCC 4.2 -.endif - post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${RUBY_MODEXAMPLESDIR} diff --git a/textproc/ruby-xtemplate/files/patch-xt.c b/textproc/ruby-xtemplate/files/patch-xt.c new file mode 100644 index 000000000000..14071ec9317e --- /dev/null +++ b/textproc/ruby-xtemplate/files/patch-xt.c @@ -0,0 +1,16 @@ +--- ext/xt.c.orig Wed May 30 19:05:12 2007 ++++ ext/xt.c Wed May 30 19:07:43 2007 +@@ -243,11 +243,12 @@ + return rb_funcall(children, i_collect, 0); + } + ++static VALUE rb_xt_xnode_deep_dup(int, VALUE[], VALUE); ++ + static VALUE + rb_xt_xnode_deep_dup_ii(VALUE child, VALUE data) + { + VALUE node = data; +- static VALUE rb_xt_xnode_deep_dup(int, VALUE[], VALUE); + + if( rb_obj_is_kind_of(child, rb_cXNode) ){ + VALUE argv[1] = {node}; |