$NetBSD: patch-aa,v 1.2 2015/12/07 17:40:27 joerg Exp $ ftime() is deprecated, use gettimeofday() instead. --- shared/commonlib.c.orig 2009-02-01 19:31:59.000000000 +0000 +++ shared/commonlib.c @@ -6,7 +6,7 @@ #elif defined EnhTime # include #else -# include +# include #endif #include @@ -844,10 +844,10 @@ double timeNow(void) } return( timeBase + (double) now.QuadPart/(double) freq.QuadPart ); #else - struct timeb buf; + struct timeval buf; - ftime(&buf); - return((double)buf.time+((double) buf.millitm)/1000.0); + gettimeofday(&buf, NULL); + return(buf.tv_sec + buf.tv_usec * 0.000001); #endif }