From 35e2d8d0485322558a8c4b726674a5293d6aec37 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Mon, 28 Jul 2014 19:26:15 -0500 Subject: add asprintf / vasprintf from OpenSSH portable ok deraadt@ beck@ --- include/Makefile.am | 1 + include/stdio.h | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 include/stdio.h (limited to 'include') diff --git a/include/Makefile.am b/include/Makefile.am index 889f775..d4487d7 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -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 diff --git a/include/stdio.h b/include/stdio.h new file mode 100644 index 0000000..e23fbe5 --- /dev/null +++ b/include/stdio.h @@ -0,0 +1,11 @@ +#include_next + +#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 -- cgit v1.2.3-55-g6feb