Browse files

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
  • Loading branch information...
1 parent dfbf91e commit 1d84085365836b38406d2310c4a38b59fd1e4175 @milkie milkie committed May 16, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 third_party/js-1.7/jsprf.c
@@ -58,6 +58,8 @@
#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]

0 comments on commit 1d84085

Please sign in to comment.