diff options
author | Brent Cook <bcook@openbsd.org> | 2014-10-29 15:44:36 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2014-10-30 19:15:11 -0500 |
commit | a4cc953911a745d6e769a03cbe6442ee2fc27cbd (patch) | |
tree | 8c26006db95beb6249b755e108ee1aa317e742bd /include/stdlib.h | |
parent | 727bccd093eaeac853ac84c7b6f31e67e452cde9 (diff) | |
download | portable-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/stdlib.h')
-rw-r--r-- | include/stdlib.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index c314f38..1a1cb6c 100644 --- a/include/stdlib.h +++ b/include/stdlib.h | |||
@@ -7,16 +7,16 @@ | |||
7 | #include <sys/time.h> | 7 | #include <sys/time.h> |
8 | #include <stdint.h> | 8 | #include <stdint.h> |
9 | 9 | ||
10 | #ifdef NO_ARC4RANDOM_BUF | 10 | #ifndef HAVE_ARC4RANDOM_BUF |
11 | uint32_t arc4random(void); | 11 | uint32_t arc4random(void); |
12 | void arc4random_buf(void *_buf, size_t n); | 12 | void arc4random_buf(void *_buf, size_t n); |
13 | #endif | 13 | #endif |
14 | 14 | ||
15 | #ifdef NO_REALLOCARRAY | 15 | #ifndef HAVE_REALLOCARRAY |
16 | void *reallocarray(void *, size_t, size_t); | 16 | void *reallocarray(void *, size_t, size_t); |
17 | #endif | 17 | #endif |
18 | 18 | ||
19 | #ifdef NO_STRTONUM | 19 | #ifndef HAVE_STRTONUM |
20 | long long strtonum(const char *nptr, long long minval, | 20 | long long strtonum(const char *nptr, long long minval, |
21 | long long maxval, const char **errstr); | 21 | long long maxval, const char **errstr); |
22 | #endif | 22 | #endif |