diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 2bac0a66a..36b763c2a 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2007-07-06 Corinna Vinschen + + * times.cc (gettimeofday): Align definition to POSIX. + 2007-07-06 Corinna Vinschen * cygwin.din: Export wcstol, wcstoll, wcstoul, wcstoull, wcsxfrm. diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc index 336a649da..6dbdc0107 100644 --- a/winsup/cygwin/times.cc +++ b/winsup/cygwin/times.cc @@ -150,8 +150,9 @@ hires_ms NO_COPY gtod; /* FIXME: Make thread safe */ extern "C" int -gettimeofday (struct timeval *tv, struct timezone *tz) +gettimeofday (struct timeval *tv, void *tzvp) { + struct timezone *tz = (struct timezone *) tzvp; static bool tzflag; LONGLONG now = gtod.usecs ();