aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2014-07-28 19:26:15 -0500
committerBrent Cook <bcook@openbsd.org>2014-07-29 11:17:22 -0500
commit35e2d8d0485322558a8c4b726674a5293d6aec37 (patch)
treead0d41a52ecaa23306c8207f344598f83cbe16ed /include
parent02ad0041c4f055c541be15ce3f4df9fd65236004 (diff)
downloadportable-35e2d8d0485322558a8c4b726674a5293d6aec37.tar.gz
portable-35e2d8d0485322558a8c4b726674a5293d6aec37.tar.bz2
portable-35e2d8d0485322558a8c4b726674a5293d6aec37.zip
add asprintf / vasprintf from OpenSSH portable
ok deraadt@ beck@
Diffstat (limited to 'include')
-rw-r--r--include/Makefile.am1
-rw-r--r--include/stdio.h11
2 files changed, 12 insertions, 0 deletions
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
2 2
3noinst_HEADERS = err.h 3noinst_HEADERS = err.h
4noinst_HEADERS += pqueue.h 4noinst_HEADERS += pqueue.h
5noinst_HEADERS += stdio.h
5noinst_HEADERS += stdlib.h 6noinst_HEADERS += stdlib.h
6noinst_HEADERS += string.h 7noinst_HEADERS += string.h
7noinst_HEADERS += unistd.h 8noinst_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 @@
1#include_next <stdio.h>
2
3#ifndef LIBCRYPTOCOMPAT_STDIO_H
4#define LIBCRYPTOCOMPAT_STDIO_H
5
6#ifdef NO_ASPRINTF
7int vasprintf(char **str, const char *fmt, va_list ap);
8int asprintf(char **str, const char *fmt, ...);
9#endif
10
11#endif