From 3d3a30c8ee560000ff5d190850b15840bc625915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Mon, 20 Aug 2018 06:48:55 +0000 Subject: [PATCH] Fix build by including sys/random.h. Approved by: nobutaka (maintainer) --- sysutils/dd_rescue/Makefile | 1 + sysutils/dd_rescue/files/patch-random.c | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 sysutils/dd_rescue/files/patch-random.c diff --git a/sysutils/dd_rescue/Makefile b/sysutils/dd_rescue/Makefile index 45a8173852f2..7909f5facfaa 100644 --- a/sysutils/dd_rescue/Makefile +++ b/sysutils/dd_rescue/Makefile @@ -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/ diff --git a/sysutils/dd_rescue/files/patch-random.c b/sysutils/dd_rescue/files/patch-random.c new file mode 100644 index 000000000000..e2a830f9b41c --- /dev/null +++ b/sysutils/dd_rescue/files/patch-random.c @@ -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 + #endif ++#ifdef __FreeBSD__ ++#include ++#endif + + static void msleep(unsigned int msecs) + {