summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorJuergen Lock <nox@FreeBSD.org>2007-10-21 19:17:58 +0000
committerJuergen Lock <nox@FreeBSD.org>2007-10-21 19:17:58 +0000
commita61bc5cd0eac6b2bf96076dbee79ca57fa444bfc (patch)
treee2aa058f79805aa8a6edeccbafde471872303514 /lang
parentWhen an SMTP session starts, xf-spf is expected to be forked from (diff)
Fix build with GCC 4.2
Notes
Notes: svn path=/head/; revision=201734
Diffstat (limited to 'lang')
-rw-r--r--lang/ruby-js/Makefile8
-rw-r--r--lang/ruby-js/files/patch-js.c14
2 files changed, 15 insertions, 7 deletions
diff --git a/lang/ruby-js/Makefile b/lang/ruby-js/Makefile
index 7ce81ae2c255..4d4130f72f7b 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 000000000000..82ea74832e4c
--- /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