add asprintf / vasprintf from OpenSSH portable

ok deraadt@ beck@
This commit is contained in:
Brent Cook
2014-07-28 19:26:15 -05:00
parent 02ad0041c4
commit 35e2d8d048
5 changed files with 115 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ SUBDIRS = openssl
noinst_HEADERS = err.h
noinst_HEADERS += pqueue.h
noinst_HEADERS += stdio.h
noinst_HEADERS += stdlib.h
noinst_HEADERS += string.h
noinst_HEADERS += unistd.h

11
include/stdio.h Normal file
View File

@@ -0,0 +1,11 @@
#include_next <stdio.h>
#ifndef LIBCRYPTOCOMPAT_STDIO_H
#define LIBCRYPTOCOMPAT_STDIO_H
#ifdef NO_ASPRINTF
int vasprintf(char **str, const char *fmt, va_list ap);
int asprintf(char **str, const char *fmt, ...);
#endif
#endif