mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
f66dcf1ebc
- Fix compile on amd64
17 lines
495 B
C
17 lines
495 B
C
--- 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)
|
|
+#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)
|