From: Brian J. <bjj...@us...> - 2001-07-09 14:02:58
|
Christian Bauer wrote: > On Thu, Jul 05, 2001 at 02:13:35PM -0500, Brian Johnson wrote: > > But wouldn't the easier way to do this be to call localtime(), and > > reconstruct the local time in seconds from the tm_sec, tm_min, > > tm_hour, tm_yday, and tm_year fields? > > Excellent idea. I've committed some code to the CVS that adds a > TimeToMacTime(time_t) function for this purpose. The TIME_OFFSET constant > is gone, and the file dates in the ExtFS are also correct now. That seems to have broken timer_unix.cpp for Irix, where Delay_usec() needs pthread.h: --- timer_unix.cpp 2001/07/09 11:22:00 1.11 +++ timer_unix.cpp 2001/07/09 14:02:09 @@ -233,6 +233,7 @@ #elif defined(HAVE_PTHREADS) && defined(sgi) // SGI pthreads has a bug when using pthreads+signals+nanosleep, // so instead of using nanosleep, wait on a CV which is never signalled. +#include <pthread.h> #define USE_COND_TIMEDWAIT #endif Brian -------------------------------------------------------------------- "Occasionally get out of the office, the lab, the computer room, smell the flowers and take a look at the physical world around you." -- Rob Cook |