summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/randread/Makefile4
-rw-r--r--benchmarks/randread/distinfo3
-rw-r--r--benchmarks/randread/patches/patch-randread.c16
3 files changed, 19 insertions, 4 deletions
diff --git a/benchmarks/randread/Makefile b/benchmarks/randread/Makefile
index c32823c54e9..5692885e12b 100644
--- a/benchmarks/randread/Makefile
+++ b/benchmarks/randread/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2014/10/09 14:06:00 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2015/01/01 09:22:23 dholland Exp $
#
DISTNAME= randread-0.2
@@ -10,8 +10,6 @@ HOMEPAGE= http://randread.sourceforge.net/
COMMENT= Program to help benchmark random disk read performance
LICENSE= public-domain
-ONLY_FOR_PLATFORM= DragonFly-*-* FreeBSD-*-* NetBSD-*-* OpenBSD-*-*
-
BUILD_TARGET= randread
WRKSRC= ${WRKDIR}/${DISTNAME}
diff --git a/benchmarks/randread/distinfo b/benchmarks/randread/distinfo
index c5c247713b8..d166b87522a 100644
--- a/benchmarks/randread/distinfo
+++ b/benchmarks/randread/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2011/02/03 14:15:12 obache Exp $
+$NetBSD: distinfo,v 1.6 2015/01/01 09:22:23 dholland Exp $
SHA1 (randread-0.2.tar.gz) = 5085d07cb6c4395d018addb4ab81f060473ea620
RMD160 (randread-0.2.tar.gz) = e8806da27cc231748b9416b16949c4921abc1d91
@@ -6,4 +6,5 @@ Size (randread-0.2.tar.gz) = 8112 bytes
SHA1 (patch-Makefile) = 0b709cc55687b274eda350cd263477644964c6e9
SHA1 (patch-filelist.c) = eee8bb8586cdcc568e8cf44965465d5f1885cd93
SHA1 (patch-filelist__test.c) = 15bf7f34db587812061f2e9aa5bf743c72ad458a
+SHA1 (patch-randread.c) = a9a1a156a3b25dec68f2b95e2a223b80b70141d2
SHA1 (patch-test.c) = 0257aea93fdc12840c12e3818672fc8e4c2fb232
diff --git a/benchmarks/randread/patches/patch-randread.c b/benchmarks/randread/patches/patch-randread.c
new file mode 100644
index 00000000000..7fc9c67bc2c
--- /dev/null
+++ b/benchmarks/randread/patches/patch-randread.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-randread.c,v 1.1 2015/01/01 09:22:23 dholland Exp $
+
+This does not actually use either disklabel.h or ioctl.h, so improve
+portability by not including them.
+
+--- randread.c~ 2002-09-11 06:25:46.000000000 +0000
++++ randread.c
+@@ -9,8 +9,6 @@ char VERSION[] = "@(#) randread v0.2 200
+
+ #include <sys/types.h>
+
+-#include <sys/disklabel.h>
+-#include <sys/ioctl.h>
+ #include <sys/stat.h>
+ #include <sys/time.h>
+ #include <errno.h>