Commit 8ad7570c20d2381a5e1962d9b1b813d44c080837

Guillem Jover 2021-11-27T21:07:00

getentropy: Add missing prototype for BSD variant Warned-by: gcc

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/getentropy_bsd.c b/src/getentropy_bsd.c
index 705f65b..551b646 100644
--- a/src/getentropy_bsd.c
+++ b/src/getentropy_bsd.c
@@ -26,6 +26,8 @@
 #include <errno.h>
 #include <stddef.h>
 
+int	getentropy(void *buf, size_t len);
+
 /*
  * Derived from lib/libc/gen/arc4random.c from FreeBSD.
  */