aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/w32.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/w32.c b/src/w32.c
index f35ad67d829..878b22473a6 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -2982,7 +2982,7 @@ emacs_root_dir (void)
2982 2982
2983/* Emulate gettimeofday (Ulrich Leodolter, 1/11/95). */ 2983/* Emulate gettimeofday (Ulrich Leodolter, 1/11/95). */
2984int 2984int
2985gettimeofday (struct timeval *__restrict tv, struct timezone *__restrict tz) 2985gettimeofday (struct timeval *__restrict tv, void *__restrict tzv)
2986{ 2986{
2987 struct _timeb tb; 2987 struct _timeb tb;
2988 _ftime (&tb); 2988 _ftime (&tb);
@@ -2995,8 +2995,10 @@ gettimeofday (struct timeval *__restrict tv, struct timezone *__restrict tz)
2995 GetTimeZoneInformation, but that doesn't seem necessary, since 2995 GetTimeZoneInformation, but that doesn't seem necessary, since
2996 Emacs always calls gettimeofday with the 2nd argument NULL (see 2996 Emacs always calls gettimeofday with the 2nd argument NULL (see
2997 current_emacs_time). */ 2997 current_emacs_time). */
2998 if (tz) 2998 if (tzv)
2999 { 2999 {
3000 struct timezone *tz = (struct timezone *)tzv;
3001
3000 tz->tz_minuteswest = tb.timezone; /* minutes west of Greenwich */ 3002 tz->tz_minuteswest = tb.timezone; /* minutes west of Greenwich */
3001 tz->tz_dsttime = tb.dstflag; /* type of dst correction */ 3003 tz->tz_dsttime = tb.dstflag; /* type of dst correction */
3002 } 3004 }