From 1d84085365836b38406d2310c4a38b59fd1e4175 Mon Sep 17 00:00:00 2001 From: Eric Milkie Date: Wed, 16 May 2012 09:01:12 -0400 Subject: fix js-1.7 for freebsd fixes this compilation problem: src/third_party/js-1.7/jsprf.c: In function 'BuildArgArray': src/third_party/js-1.7/jsprf.c:644: error: incompatible types in assignment --- third_party/js-1.7/jsprf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/third_party/js-1.7/jsprf.c b/third_party/js-1.7/jsprf.c index 416c16c82c7..67355207f8d 100644 --- a/third_party/js-1.7/jsprf.c +++ b/third_party/js-1.7/jsprf.c @@ -58,6 +58,8 @@ */ #ifdef HAVE_VA_COPY #define VARARGS_ASSIGN(foo, bar) VA_COPY(foo,bar) +#elif defined(va_copy) +#define VARARGS_ASSIGN(foo, bar) va_copy(foo,bar) #elif defined(HAVE_VA_LIST_AS_ARRAY) #define VARARGS_ASSIGN(foo, bar) foo[0] = bar[0] #else -- cgit v1.2.1