1
0
Fork 0
forked from fun/fun

Small fix to remove a warning at compile time on FreeBSD. (0.37.26)

This commit is contained in:
Johannes Findeisen 2025-12-28 19:26:57 +01:00
commit 41cb23614e
2 changed files with 3 additions and 1 deletions

View file

@ -27,6 +27,8 @@
#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
#include <stdlib.h>
#include <sys/random.h>
/* On some BSDs, arc4random_buf might be hidden by _POSIX_C_SOURCE. */
void arc4random_buf(void *, size_t);
#elif defined(__unix__)
#if __has_include(<sys/random.h>)
#include <sys/random.h>