diff options
author | nox <nox@FreeBSD.org> | 2007-10-22 03:17:58 +0800 |
---|---|---|
committer | nox <nox@FreeBSD.org> | 2007-10-22 03:17:58 +0800 |
commit | 4357e26d2738b212845cdd3e8547ae1fdc24cb90 (patch) | |
tree | 1233f22778ffd30f8a18c17962357ca33f05f8f2 /lang | |
parent | ec647b0aa60f98b2ac0e801dd69005383761b83f (diff) | |
download | freebsd-ports-graphics-4357e26d2738b212845cdd3e8547ae1fdc24cb90.tar.gz freebsd-ports-graphics-4357e26d2738b212845cdd3e8547ae1fdc24cb90.tar.zst freebsd-ports-graphics-4357e26d2738b212845cdd3e8547ae1fdc24cb90.zip |
Fix build with GCC 4.2
Diffstat (limited to 'lang')
-rw-r--r-- | lang/ruby-js/Makefile | 8 | ||||
-rw-r--r-- | lang/ruby-js/files/patch-js.c | 14 |
2 files changed, 15 insertions, 7 deletions
diff --git a/lang/ruby-js/Makefile b/lang/ruby-js/Makefile index 7ce81ae2c25..4d4130f72f7 100644 --- a/lang/ruby-js/Makefile +++ b/lang/ruby-js/Makefile @@ -43,10 +43,4 @@ post-install: .endfor .endif -.include <bsd.port.pre.mk> - -.if ${OSVERSION} >= 700042 -BROKEN= Does not compile with GCC 4.2 -.endif - -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/lang/ruby-js/files/patch-js.c b/lang/ruby-js/files/patch-js.c new file mode 100644 index 00000000000..82ea74832e4 --- /dev/null +++ b/lang/ruby-js/files/patch-js.c @@ -0,0 +1,14 @@ +Index: js.c +@@ -112,9 +112,9 @@ + static VALUE + rb_js_eval(VALUE obj, VALUE code) + { +- JSInterpPtr interp; +- Data_Get_Struct(obj, JSInterpPtr, (void *) interp); +- return rb_js_evalcode(interp, code); ++ void *interp; ++ Data_Get_Struct(obj, JSInterpPtr, interp); ++ return rb_js_evalcode((JSInterpPtr) interp, code); + } + + void |