1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

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
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=477631
2 changed files with 13 additions and 0 deletions

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/

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)
{