Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix missing arc4random_buf declaration for Linux builds
Alex Richardson committed 5 years ago
commit 79d411ff963c34eddd5fc6766e841caa07a6d283
parent 1b6ac66
2 files changed +6 -2
modified auto.def
@@ -270,8 +270,8 @@ cc-with { -libs { -ljail} } {

# libbsd
cc-check-includes bsd/err.h bsd/libutil.h bsd/readpassphrase.h \
-
	bsd/stdio.h bsd/strlib.h bsd/string.h bsd/sys/cdefs.h \
-
	bsd/unistd.h
+
	bsd/stdio.h bsd/stdlib.h bsd/strlib.h bsd/string.h \
+
	bsd/sys/cdefs.h bsd/unistd.h
 
if {[opt-bool with-asan]} {
	define-append ASAN_CFLAGS -O0 -ggdb -fsanitize=address
modified compat/bsd_compat.h
@@ -64,6 +64,10 @@
#include <bsd/stdio.h>
#endif

+
#ifdef HAVE_BSD_STLIB_H
+
#include <bsd/stdlib.h>
+
#endif
+

#ifdef HAVE_BSD_ERR_H
#include <bsd/err.h>
#endif