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:
parent
3262744fcc
commit
3d3a30c8ee
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=477631
@ -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
sysutils/dd_rescue/files/patch-random.c
Normal file
12
sysutils/dd_rescue/files/patch-random.c
Normal 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)
|
||||
{
|
Loading…
Reference in New Issue
Block a user