summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/times.cc3
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 2bac0a66a..36b763c2a 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2007-07-06 Corinna Vinschen <corinna@vinschen.de>
+ * times.cc (gettimeofday): Align definition to POSIX.
+
+2007-07-06 Corinna Vinschen <corinna@vinschen.de>
+
* cygwin.din: Export wcstol, wcstoll, wcstoul, wcstoull, wcsxfrm.
* include/cygwin/version.h: Bump API minor number.
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 ();