diff options
| author | Brent Cook <bcook@openbsd.org> | 2014-07-28 19:26:15 -0500 |
|---|---|---|
| committer | Brent Cook <bcook@openbsd.org> | 2014-07-29 11:17:22 -0500 |
| commit | 35e2d8d0485322558a8c4b726674a5293d6aec37 (patch) | |
| tree | ad0d41a52ecaa23306c8207f344598f83cbe16ed /include | |
| parent | 02ad0041c4f055c541be15ce3f4df9fd65236004 (diff) | |
| download | portable-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.am | 1 | ||||
| -rw-r--r-- | include/stdio.h | 11 |
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 | ||
| 3 | noinst_HEADERS = err.h | 3 | noinst_HEADERS = err.h |
| 4 | noinst_HEADERS += pqueue.h | 4 | noinst_HEADERS += pqueue.h |
| 5 | noinst_HEADERS += stdio.h | ||
| 5 | noinst_HEADERS += stdlib.h | 6 | noinst_HEADERS += stdlib.h |
| 6 | noinst_HEADERS += string.h | 7 | noinst_HEADERS += string.h |
| 7 | noinst_HEADERS += unistd.h | 8 | 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 @@ | |||
| 1 | #include_next <stdio.h> | ||
| 2 | |||
| 3 | #ifndef LIBCRYPTOCOMPAT_STDIO_H | ||
| 4 | #define LIBCRYPTOCOMPAT_STDIO_H | ||
| 5 | |||
| 6 | #ifdef NO_ASPRINTF | ||
| 7 | int vasprintf(char **str, const char *fmt, va_list ap); | ||
| 8 | int asprintf(char **str, const char *fmt, ...); | ||
| 9 | #endif | ||
| 10 | |||
| 11 | #endif | ||
