mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-24 04:16:46 +00:00
Make arc4random_buf declaration available on NetBSD
Signed-off-by: gufe44 <gu981@protonmail.com>
This commit is contained in:
parent
ee7e85f5b9
commit
c54888eb60
3
ChangeLog.d/arc4random_buf-implicit.txt
Normal file
3
ChangeLog.d/arc4random_buf-implicit.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
Bugfix
|
||||||
|
* Make arc4random_buf available on NetBSD and OpenBSD when _POSIX_C_SOURCE is
|
||||||
|
defined. Fix contributed in #3571.
|
|
@ -24,6 +24,15 @@
|
||||||
* This file is part of mbed TLS (https://tls.mbed.org)
|
* This file is part of mbed TLS (https://tls.mbed.org)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* for arc4random_buf() from <stdlib.h>
|
||||||
|
*/
|
||||||
|
#if defined(__NetBSD__)
|
||||||
|
#define _NETBSD_SOURCE 1
|
||||||
|
#elif defined(__OpenBSD__)
|
||||||
|
#define _BSD_SOURCE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <test/macros.h>
|
#include <test/macros.h>
|
||||||
#include <test/random.h>
|
#include <test/random.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
Loading…
Reference in a new issue