diff options
author | Brent Cook <bcook@openbsd.org> | 2014-07-28 12:09:38 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2014-07-28 13:52:07 -0500 |
commit | 981fc3618a78970cca6327666366a7056edd3ebf (patch) | |
tree | 4ab5ddc40a14bc81868cb4b736a3376108f3d85e /include/stdlib.h | |
parent | cd168d519bd2f44f03180f3c97bb476174ddb832 (diff) | |
download | portable-981fc3618a78970cca6327666366a7056edd3ebf.tar.gz portable-981fc3618a78970cca6327666366a7056edd3ebf.tar.bz2 portable-981fc3618a78970cca6327666366a7056edd3ebf.zip |
Guard individual compatibility header prototypes.
This is to avoid redefining prototypes from the libc headers. Also,
simplify the autoconf function checks and remove some copy/paste
errors checking for 'write'.
ok wouter@
Diffstat (limited to 'include/stdlib.h')
-rw-r--r-- | include/stdlib.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 6c2de93..c314f38 100644 --- a/include/stdlib.h +++ b/include/stdlib.h | |||
@@ -7,10 +7,18 @@ | |||
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 | uint32_t arc4random(void); | 11 | uint32_t arc4random(void); |
11 | void arc4random_buf(void *_buf, size_t n); | 12 | void arc4random_buf(void *_buf, size_t n); |
13 | #endif | ||
14 | |||
15 | #ifdef NO_REALLOCARRAY | ||
12 | void *reallocarray(void *, size_t, size_t); | 16 | void *reallocarray(void *, size_t, size_t); |
17 | #endif | ||
18 | |||
19 | #ifdef NO_STRTONUM | ||
13 | long long strtonum(const char *nptr, long long minval, | 20 | long long strtonum(const char *nptr, long long minval, |
14 | long long maxval, const char **errstr); | 21 | long long maxval, const char **errstr); |
22 | #endif | ||
15 | 23 | ||
16 | #endif | 24 | #endif |