$NetBSD: patch-aa,v 1.5 2003/05/11 00:06:14 jtb Exp $ --- main.c.orig +++ main.c @@ -429,7 +429,8 @@ 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 }