Small fix to remove a warning at compile time on FreeBSD. (0.37.26)
This commit is contained in:
parent
e1890a5b89
commit
41cb23614e
2 changed files with 3 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
cmake_minimum_required(VERSION 3.10)
|
||||
project(fun VERSION 0.37.25 LANGUAGES C)
|
||||
project(fun VERSION 0.37.26 LANGUAGES C)
|
||||
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue