aboutsummaryrefslogtreecommitdiff
path: root/include/stdio.h
diff options
context:
space:
mode:
authorBrent Cook <bcook@openbsd.org>2014-10-29 15:44:36 -0500
committerBrent Cook <bcook@openbsd.org>2014-10-30 19:15:11 -0500
commita4cc953911a745d6e769a03cbe6442ee2fc27cbd (patch)
tree8c26006db95beb6249b755e108ee1aa317e742bd /include/stdio.h
parent727bccd093eaeac853ac84c7b6f31e67e452cde9 (diff)
downloadportable-a4cc953911a745d6e769a03cbe6442ee2fc27cbd.tar.gz
portable-a4cc953911a745d6e769a03cbe6442ee2fc27cbd.tar.bz2
portable-a4cc953911a745d6e769a03cbe6442ee2fc27cbd.zip
Improve and simplify function and header detection logic.
Simplify autoconf checks by using AC_CHECK_FUNCS/HEADERS. Clarify some ambiguous dependencies around strnlen/strndup. Unconditionally enable pidwraptest for all arc4random implementations. Remove HAVE_VASPRINTF conditional, since asprintf requires vasprintf. ok @doug
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdio.h b/include/stdio.h
index fffa170..4a40f6a 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -3,7 +3,7 @@
3#ifndef LIBCRYPTOCOMPAT_STDIO_H 3#ifndef LIBCRYPTOCOMPAT_STDIO_H
4#define LIBCRYPTOCOMPAT_STDIO_H 4#define LIBCRYPTOCOMPAT_STDIO_H
5 5
6#ifdef NO_ASPRINTF 6#ifndef HAVE_ASPRINTF
7#include <stdarg.h> 7#include <stdarg.h>
8int vasprintf(char **str, const char *fmt, va_list ap); 8int vasprintf(char **str, const char *fmt, va_list ap);
9int asprintf(char **str, const char *fmt, ...); 9int asprintf(char **str, const char *fmt, ...);