build: fix broken import for macos-x86_64

This commit is contained in:
pkova 2023-01-20 19:19:36 +02:00
parent 7099e7dc27
commit b1b8995ede

View File

@ -12,6 +12,8 @@ int ent_getentropy(void* buf, size_t len) {
#elif defined(ENT_GETENTROPY_SYSRANDOM)
#include <stddef.h>
// See https://www.mail-archive.com/bug-gnulib@gnu.org/msg38583.html.
#include <stdlib.h>
#include <sys/random.h>
int ent_getentropy(void* buf, size_t len) {
return getentropy(buf, len);