- (dtucker) [defines.h] Add va_copy if we don't already have it, taken from

openbsd-compat/bsd-asprintf.c.
This commit is contained in:
Darren Tucker 2014-06-12 05:22:49 +10:00
parent 58538d795e
commit cf5392c2db
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,7 @@
20140611
- (dtucker) [defines.h] Add va_copy if we don't already have it, taken from
openbsd-compat/bsd-asprintf.c.
20140610
- (dtucker) [regress/unittests/sshbuf/test_sshbuf_getput_crypto.c
regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c] Only do NISTP256

View File

@ -25,7 +25,7 @@
#ifndef _DEFINES_H
#define _DEFINES_H
/* $Id: defines.h,v 1.180 2014/05/21 07:06:47 djm Exp $ */
/* $Id: defines.h,v 1.181 2014/06/11 19:22:50 dtucker Exp $ */
/* Constants */
@ -822,4 +822,12 @@ struct winsize {
# define arc4random_stir()
#endif
#ifndef HAVE_VA_COPY
# ifdef HAVE___VA_COPY
# define va_copy(dest, src) __va_copy(dest, src)
# else
# define va_copy(dest, src) (dest) = (src)
# endif
#endif
#endif /* _DEFINES_H */