svn commit: r477631 - in head/sysutils/dd_rescue: . files

Stefan Esser se at FreeBSD.org
Mon Aug 20 06:48:57 UTC 2018


Author: se
Date: Mon Aug 20 06:48:55 2018
New Revision: 477631
URL: https://svnweb.freebsd.org/changeset/ports/477631

Log:
  Fix build by including sys/random.h.
  
  Approved by:	nobutaka (maintainer)

Added:
  head/sysutils/dd_rescue/files/patch-random.c   (contents, props changed)
Modified:
  head/sysutils/dd_rescue/Makefile

Modified: head/sysutils/dd_rescue/Makefile
==============================================================================
--- head/sysutils/dd_rescue/Makefile	Mon Aug 20 05:31:06 2018	(r477630)
+++ head/sysutils/dd_rescue/Makefile	Mon Aug 20 06:48:55 2018	(r477631)
@@ -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/

Added: head/sysutils/dd_rescue/files/patch-random.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/dd_rescue/files/patch-random.c	Mon Aug 20 06:48:55 2018	(r477631)
@@ -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)
+ {


More information about the svn-ports-all mailing list