Fix build by including sys/random.h.

Approved by:	nobutaka (maintainer)
This commit is contained in:
Stefan Eßer
2018-08-20 06:48:55 +00:00
parent 3262744fcc
commit 3d3a30c8ee
2 changed files with 13 additions and 0 deletions
+1
View File
@@ -3,6 +3,7 @@
PORTNAME= dd_rescue
PORTVERSION= 1.99.8
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www.garloff.de/kurt/linux/ddrescue/ \
http://fossies.org/unix/privat/
+12
View File
@@ -0,0 +1,12 @@
--- random.c.orig 2015-09-10 15:51:08 UTC
+++ random.c
@@ -22,6 +22,9 @@ typedef unsigned int __u32;
#ifdef HAVE_LINUX_RANDOM_H
#include <linux/random.h>
#endif
+#ifdef __FreeBSD__
+#include <sys/random.h>
+#endif
static void msleep(unsigned int msecs)
{