diff options
author | jtb <jtb@pkgsrc.org> | 2002-06-27 03:50:47 +0000 |
---|---|---|
committer | jtb <jtb@pkgsrc.org> | 2002-06-27 03:50:47 +0000 |
commit | 1e851074a4f9e0ee4e7123b0f2321713916c1c16 (patch) | |
tree | d73fb11ef402e8aedb1d719c30b0050e0641e069 /math/euler/patches | |
parent | 5a48f1420d892b311ff7bec0f23a8fada3522f33 (diff) | |
download | pkgsrc-1e851074a4f9e0ee4e7123b0f2321713916c1c16.tar.gz |
Fix mistake in last commit.
Diffstat (limited to 'math/euler/patches')
-rw-r--r-- | math/euler/patches/patch-aa | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/math/euler/patches/patch-aa b/math/euler/patches/patch-aa index 4dce05fe2bf..961d1c5a263 100644 --- a/math/euler/patches/patch-aa +++ b/math/euler/patches/patch-aa @@ -1,17 +1,19 @@ -$NetBSD: patch-aa,v 1.2 2002/06/27 00:35:31 jtb Exp $ +$NetBSD: patch-aa,v 1.3 2002/06/27 03:50:48 jtb Exp $ --- main.c.orig Wed Feb 20 08:59:59 2002 -+++ main.c Thu Apr 25 10:42:10 2002 -@@ -389,7 +389,7 @@ ++++ main.c +@@ -389,7 +389,9 @@ gettimer(TIMEOFDAY,&t); return (t.tv_sec+t.tv_nsec/1000000000.0); #else - return ((double)(times(NULL)))/CLK_TCK; -+ return ((double)(times()))/CLK_TCK; ++ struct tms t; ++ times(&t); ++ return (double)(t.tms_utime+t.tms_stime)/CLK_TCK; #endif } -@@ -1308,7 +1308,7 @@ +@@ -1308,7 +1310,7 @@ break; case E_DOC: { char *browser; |