diff options
author | kinichiro <kinichiro.inoguchi@gmail.com> | 2017-04-22 23:08:17 +0900 |
---|---|---|
committer | kinichiro <kinichiro.inoguchi@gmail.com> | 2017-04-22 23:37:20 +0900 |
commit | 048625cf2b36a91bcf04c5a1adc02fc5803491ca (patch) | |
tree | 5f328c5237ea412b17c7c7f3d5c8132115c7e790 /include | |
parent | 9d2418ae3a0b9577fdea0bac90802d8c0147f7f4 (diff) | |
download | portable-048625cf2b36a91bcf04c5a1adc02fc5803491ca.tar.gz portable-048625cf2b36a91bcf04c5a1adc02fc5803491ca.tar.bz2 portable-048625cf2b36a91bcf04c5a1adc02fc5803491ca.zip |
Add freezero support
Diffstat (limited to 'include')
-rw-r--r-- | include/compat/stdlib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/compat/stdlib.h b/include/compat/stdlib.h index 11f82ba..cc04856 100644 --- a/include/compat/stdlib.h +++ b/include/compat/stdlib.h | |||
@@ -25,6 +25,10 @@ void arc4random_buf(void *_buf, size_t n); | |||
25 | uint32_t arc4random_uniform(uint32_t upper_bound); | 25 | uint32_t arc4random_uniform(uint32_t upper_bound); |
26 | #endif | 26 | #endif |
27 | 27 | ||
28 | #ifndef HAVE_FREEZERO | ||
29 | void freezero(void *ptr, size_t sz); | ||
30 | #endif | ||
31 | |||
28 | #ifndef HAVE_REALLOCARRAY | 32 | #ifndef HAVE_REALLOCARRAY |
29 | void *reallocarray(void *, size_t, size_t); | 33 | void *reallocarray(void *, size_t, size_t); |
30 | #endif | 34 | #endif |