Skip to content

Commit

Permalink
Use time.h instead of declaring own version of time().
Browse files Browse the repository at this point in the history
  • Loading branch information
dholland committed Nov 9, 2015
1 parent 17e6c99 commit 70a0a79
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmarks/bytebench/distinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.13 2015/11/03 00:25:49 agc Exp $
$NetBSD: distinfo,v 1.14 2015/11/09 07:30:59 dholland Exp $

SHA1 (unixbench-4.1.0.tgz) = 0a43d9cf08869c0f81bde4647be6bcf76c064248
RMD160 (unixbench-4.1.0.tgz) = 182e8a35574df0cd7984662bf99d47a7e24e7e03
Expand All @@ -11,3 +11,4 @@ SHA1 (patch-ad) = 3a1b788d9fa51fc168d59d8c87b1f476df2d5f41
SHA1 (patch-ae) = fbbce3deed7f0421034c1d57b66b1967ad8bddf1
SHA1 (patch-af) = 725a82ecb5f15ec47dda39d53a16027a0e4a7efd
SHA1 (patch-ag) = 27014f92b6e15756a0b6b5ae9fdeca9dd7d261cc
SHA1 (patch-dhry__1.c) = d83787bcb0af2c568efe1287ae73ff9d082d83b3
15 changes: 15 additions & 0 deletions benchmarks/bytebench/patches/patch-dhry__1.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$NetBSD: patch-dhry__1.c,v 1.1 2015/11/09 07:30:59 dholland Exp $

- use standard headers

--- src/dhry_1.c~ 1999-07-28 21:43:08.000000000 +0000
+++ src/dhry_1.c
@@ -81,7 +81,7 @@ extern int times ();
/* Measurements should last at least about 2 seconds */
#endif
#ifdef TIME
-extern long time();
+#include <time.h>
/* see library function "time" */
#define Too_Small_Time 2
/* Measurements should last at least 2 seconds */

0 comments on commit 70a0a79

Please sign in to comment.