summaryrefslogtreecommitdiff
path: root/benchmarks/dhrystone
diff options
context:
space:
mode:
authorsbd <sbd>2012-07-01 09:51:13 +0000
committersbd <sbd>2012-07-01 09:51:13 +0000
commit5f6e155508292ff0b9303d471f36d740ef065335 (patch)
treedce81ae24f9fec2b29a7764c730864528ae213f1 /benchmarks/dhrystone
parent0627c16e11a54172af853d544bb2ce2d3ac25d8a (diff)
downloadpkgsrc-5f6e155508292ff0b9303d471f36d740ef065335.tar.gz
<time.h> needs to be included for CLK_TCK
Diffstat (limited to 'benchmarks/dhrystone')
-rw-r--r--benchmarks/dhrystone/distinfo4
-rw-r--r--benchmarks/dhrystone/patches/patch-dhry__1_c11
2 files changed, 8 insertions, 7 deletions
diff --git a/benchmarks/dhrystone/distinfo b/benchmarks/dhrystone/distinfo
index 7996a17c3e9..fd35ae9b403 100644
--- a/benchmarks/dhrystone/distinfo
+++ b/benchmarks/dhrystone/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.4 2012/06/18 01:46:07 dholland Exp $
+$NetBSD: distinfo,v 1.5 2012/07/01 09:51:13 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__1_c) = 604950d273d74a1a9c6c98e269815a01becde3aa
+SHA1 (patch-dhry__1_c) = d2a311c1ee016a4398d7d19f12c01b45dc0599ed
SHA1 (patch-dhry__2_c) = 3e6caecd550c4e0f188fb7eeb6c9eda60a468a17
diff --git a/benchmarks/dhrystone/patches/patch-dhry__1_c b/benchmarks/dhrystone/patches/patch-dhry__1_c
index de888e372b8..199567e590f 100644
--- a/benchmarks/dhrystone/patches/patch-dhry__1_c
+++ b/benchmarks/dhrystone/patches/patch-dhry__1_c
@@ -1,4 +1,4 @@
-$NetBSD: patch-dhry__1_c,v 1.1 2012/06/18 01:46:07 dholland Exp $
+$NetBSD: patch-dhry__1_c,v 1.2 2012/07/01 09:51:13 sbd Exp $
- use standard headers
- don't declare own malloc
@@ -6,17 +6,18 @@ $NetBSD: patch-dhry__1_c,v 1.1 2012/06/18 01:46:07 dholland Exp $
--- dhry_1.c.orig 1988-07-12 19:35:10.000000000 +0000
+++ dhry_1.c
-@@ -15,6 +15,9 @@
+@@ -15,6 +15,10 @@
****************************************************************************
*/
+#include <stdlib.h>
+#include <string.h>
++#include <time.h>
+
#include "dhry.h"
/* Global Variables: */
-@@ -28,7 +31,6 @@ char Ch_1_Glob,
+@@ -28,7 +32,6 @@ char Ch_1_Glob,
int Arr_1_Glob [50];
int Arr_2_Glob [50] [50];
@@ -24,7 +25,7 @@ $NetBSD: patch-dhry__1_c,v 1.1 2012/06/18 01:46:07 dholland Exp $
Enumeration Func_1 ();
/* forward declaration necessary since Enumeration may not simply be int */
-@@ -221,7 +223,7 @@ main ()
+@@ -221,7 +224,7 @@ main ()
printf ("Arr_2_Glob[8][7]: %d\n", Arr_2_Glob[8][7]);
printf (" should be: Number_Of_Runs + 10\n");
printf ("Ptr_Glob->\n");
@@ -33,7 +34,7 @@ $NetBSD: patch-dhry__1_c,v 1.1 2012/06/18 01:46:07 dholland Exp $
printf (" should be: (implementation-dependent)\n");
printf (" Discr: %d\n", Ptr_Glob->Discr);
printf (" should be: %d\n", 0);
-@@ -232,7 +234,7 @@ main ()
+@@ -232,7 +235,7 @@ main ()
printf (" Str_Comp: %s\n", Ptr_Glob->variant.var_1.Str_Comp);
printf (" should be: DHRYSTONE PROGRAM, SOME STRING\n");
printf ("Next_Ptr_Glob->\n");