mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-09 20:40:13 -04:00
15 lines
356 B
Plaintext
15 lines
356 B
Plaintext
$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
|
|
}
|
|
|