diff options
author | Eric Milkie <milkie@10gen.com> | 2012-05-16 09:01:12 -0400 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2012-05-16 09:15:26 -0400 |
commit | 1d84085365836b38406d2310c4a38b59fd1e4175 (patch) | |
tree | e740eaaddb0e8c19cf9ecd0560193f45360d4aa7 | |
parent | dfbf91e16a8686cac7b58756e4fc63c88d874ec6 (diff) | |
download | mongo-1d84085365836b38406d2310c4a38b59fd1e4175.tar.gz |
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
-rw-r--r-- | third_party/js-1.7/jsprf.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |