summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2012-07-01 10:13:04 +0000
committersbd <sbd@pkgsrc.org>2012-07-01 10:13:04 +0000
commitd1580de89011f9a1ee212547415da5e2753e3ae8 (patch)
tree0151c94e0d2a50ccd561a8a49fe0c3409c497300 /benchmarks
parentb6411e8d2bc99b2fe9c667790d88458f5b924cb4 (diff)
downloadpkgsrc-d1580de89011f9a1ee212547415da5e2753e3ae8.tar.gz
If the obsolete CLK_TCK isn't defined use CLOCKS_PER_SEC.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/dhrystone/distinfo3
-rw-r--r--benchmarks/dhrystone/patches/patch-dhry.h16
2 files changed, 18 insertions, 1 deletions
diff --git a/benchmarks/dhrystone/distinfo b/benchmarks/dhrystone/distinfo
index e1cdded17af..189ca08c7ef 100644
--- a/benchmarks/dhrystone/distinfo
+++ b/benchmarks/dhrystone/distinfo
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.6 2012/07/01 09:56:13 sbd Exp $
+$NetBSD: distinfo,v 1.7 2012/07/01 10:13:04 sbd Exp $
SHA1 (dhry2.1.tar.Z) = 7b99b90dc191aac1b08fbfc256ffc0fc650ab373
RMD160 (dhry2.1.tar.Z) = f4fe0e2bbeacab3e4ce800ac9befef2ff1b47013
Size (dhry2.1.tar.Z) = 32681 bytes
SHA1 (patch-aa) = f43b8165845ff6670160d8458cc2c6a2b779f628
+SHA1 (patch-dhry.h) = 3ff36dc2b07641cb6e2413deb215de8dd276ffc4
SHA1 (patch-dhry__1_c) = 604950d273d74a1a9c6c98e269815a01becde3aa
SHA1 (patch-dhry__2_c) = 3e6caecd550c4e0f188fb7eeb6c9eda60a468a17
diff --git a/benchmarks/dhrystone/patches/patch-dhry.h b/benchmarks/dhrystone/patches/patch-dhry.h
new file mode 100644
index 00000000000..ce040bd2fcc
--- /dev/null
+++ b/benchmarks/dhrystone/patches/patch-dhry.h
@@ -0,0 +1,16 @@
+$NetBSD: patch-dhry.h,v 1.1 2012/07/01 10:13:04 sbd Exp $
+
+If the obsolete CLK_TCK isn't defined use CLOCKS_PER_SEC.
+
+--- dhry.h.orig 1988-07-12 19:35:09.000000000 +0000
++++ dhry.h
+@@ -362,6 +362,9 @@
+ #undef HZ
+ #undef TIMES
+ #include <time.h>
++#ifndef CLK_TCK
++#define CLK_TCK CLOCKS_PER_SEC
++#endif
+ #define HZ CLK_TCK
+ #endif
+ /* Use Microsoft C hi-res clock */