d17f62178f
for the user interface. Also apply patch for static/extern mismatch from Aleksej Saushev in PR 36449, which fixes build with gcc4.
14 lines
356 B
Text
14 lines
356 B
Text
$NetBSD: patch-aa,v 1.6 2007/06/06 12:43:31 tnn Exp $
|
|
|
|
--- src/main.c.orig 2005-10-30 23:54:17.000000000 +0100
|
|
+++ src/main.c
|
|
@@ -439,7 +439,8 @@ double myclock (void)
|
|
gettimer(TIMEOFDAY,&t);
|
|
return (t.tv_sec+t.tv_nsec/1000000000.0);
|
|
#else
|
|
- return ((double)(times(NULL)))/CLK_TCK;
|
|
+ struct tms t;
|
|
+ return ((double)(times(&t)))/CLK_TCK;
|
|
#endif
|
|
}
|
|
|