aboutsummaryrefslogtreecommitdiff
path: root/multimedia/gxine/files/patch-src::spidermonkey::jsprf.c
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/gxine/files/patch-src::spidermonkey::jsprf.c')
-rw-r--r--multimedia/gxine/files/patch-src::spidermonkey::jsprf.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/multimedia/gxine/files/patch-src::spidermonkey::jsprf.c b/multimedia/gxine/files/patch-src::spidermonkey::jsprf.c
index 804ad1e96d8b..aa72af7ae80b 100644
--- a/multimedia/gxine/files/patch-src::spidermonkey::jsprf.c
+++ b/multimedia/gxine/files/patch-src::spidermonkey::jsprf.c
@@ -1,11 +1,16 @@
---- src/spidermonkey/jsprf.c.orig Sat Apr 19 02:11:15 2003
-+++ src/spidermonkey/jsprf.c Sat Apr 19 02:12:27 2003
-@@ -57,7 +57,7 @@
+--- src/spidermonkey/jsprf.c.orig Fri Mar 7 02:14:11 2003
++++ src/spidermonkey/jsprf.c Wed Sep 21 20:20:45 2005
+@@ -57,7 +57,12 @@
#define VARARGS_ASSIGN(foo, bar) (foo) = (bar)
#endif
*/
-#define VARARGS_ASSIGN(foo, bar) __va_copy(foo, bar)
-+#define VARARGS_ASSIGN(foo, bar) (foo) = (bar)
++#include <osreldate.h>
++#if __FreeBSD_version >= 500000
++#define VARARGS_ASSIGN(foo, bar) va_copy(foo, bar)
++#else
++#define VARARGS_ASSIGN(foo, bar) (foo) = (bar)
++#endif
/*
** WARNING: This code may *NOT* call JS_LOG (because JS_LOG calls it)