summaryrefslogtreecommitdiff
path: root/src/w32.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2017-05-14 17:53:39 +0300
committerEli Zaretskii <eliz@gnu.org>2017-05-14 17:53:39 +0300
commit3af6909f3249dc8d74349f000117f7063f71adff (patch)
treea7765e34bdb841f665c2636bb9900c81a445431a /src/w32.c
parent4132bd74e9816ca913f862835cc062e092ab8b79 (diff)
downloademacs-3af6909f3249dc8d74349f000117f7063f71adff.tar.gz
Fix the MS-Windows build
* nt/inc/sys/time.h (gettimeofday): * src/w32.c (gettimeofday): Adjust signature to match Gnulib.
Diffstat (limited to 'src/w32.c')
-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)
/* Emulate gettimeofday (Ulrich Leodolter, 1/11/95). */
int
-gettimeofday (struct timeval *__restrict tv, struct timezone *__restrict tz)
+gettimeofday (struct timeval *__restrict tv, void *__restrict tzv)
{
struct _timeb tb;
_ftime (&tb);
@@ -2995,8 +2995,10 @@ gettimeofday (struct timeval *__restrict tv, struct timezone *__restrict tz)
GetTimeZoneInformation, but that doesn't seem necessary, since
Emacs always calls gettimeofday with the 2nd argument NULL (see
current_emacs_time). */
- if (tz)
+ if (tzv)
{
+ struct timezone *tz = (struct timezone *)tzv;
+
tz->tz_minuteswest = tb.timezone; /* minutes west of Greenwich */
tz->tz_dsttime = tb.dstflag; /* type of dst correction */
}