diff options
author | obache <obache> | 2010-12-30 08:20:42 +0000 |
---|---|---|
committer | obache <obache> | 2010-12-30 08:20:42 +0000 |
commit | 9821b224700b169bda989693a6caffd4ad8db07b (patch) | |
tree | e43ca0981fe169007dfa7ac95961f6c75e05d076 /benchmarks | |
parent | c957db88cc6b174de9d268bdf8f49ab26f559e40 (diff) | |
download | pkgsrc-9821b224700b169bda989693a6caffd4ad8db07b.tar.gz |
Fixes for DragonFly.
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/randread/distinfo | 4 | ||||
-rw-r--r-- | benchmarks/randread/patches/patch-ab | 28 |
2 files changed, 27 insertions, 5 deletions
diff --git a/benchmarks/randread/distinfo b/benchmarks/randread/distinfo index 00ee6c0a49f..d84daecd75f 100644 --- a/benchmarks/randread/distinfo +++ b/benchmarks/randread/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.3 2005/02/22 21:16:37 agc Exp $ +$NetBSD: distinfo,v 1.4 2010/12/30 08:20:42 obache Exp $ SHA1 (randread-0.1.tar.gz) = fefdf7ebeda6767a85215898e67606745f57d149 RMD160 (randread-0.1.tar.gz) = 012cfc71799affe061bff87a511c6298a7d61361 Size (randread-0.1.tar.gz) = 3490 bytes SHA1 (patch-aa) = 9d29d08e0830320c3e9964b80c008f2b1b95711c -SHA1 (patch-ab) = 36338dd76487b5df132993ec865938af4ff14972 +SHA1 (patch-ab) = 2f7193cfb153d45c14b9fac960260c0244bc6a1f diff --git a/benchmarks/randread/patches/patch-ab b/benchmarks/randread/patches/patch-ab index 150279abd95..c2de3ad0724 100644 --- a/benchmarks/randread/patches/patch-ab +++ b/benchmarks/randread/patches/patch-ab @@ -1,12 +1,34 @@ -$NetBSD: patch-ab,v 1.1 2002/08/09 02:01:56 dmcmahill Exp $ +$NetBSD: patch-ab,v 1.2 2010/12/30 08:20:42 obache Exp $ ---- randread.c.orig Fri Jun 21 03:11:29 2002 +--- randread.c.orig 2002-06-21 07:11:29.000000000 +0000 +++ randread.c -@@ -3,6 +3,7 @@ +@@ -3,7 +3,11 @@ * by the author, Curt Sampson <cjs@cynic.net>. */ +#include <sys/types.h> #include <sys/disklabel.h> ++#ifdef __DragonFly__ ++#include <sys/disklabel32.h> ++#endif #include <sys/ioctl.h> #include <sys/stat.h> + #include <sys/time.h> +@@ -100,9 +104,17 @@ int run_test() + */ + int get_char_device_blocks(int filedes) + { ++#ifdef __DragonFly__ ++ struct disklabel32 label; ++#else + struct disklabel label; ++#endif + ++#ifdef __DragonFly__ ++ if (ioctl(filedes, DIOCGDINFO32, &label) == -1) ++#else + if (ioctl(filedes, DIOCGDINFO, &label) == -1) ++#endif + return -1; + + /* Hack to make it ignore what this returns. */ |