We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31f8d13 commit 3763a6bCopy full SHA for 3763a6b
contrib/win32/win32compat/inc/sys/time.h
@@ -1,16 +1,8 @@
1
-#pragma once
2
#include <sys\utime.h>
3
4
#define utimbuf _utimbuf
5
#define utimes w32_utimes
6
7
-#define timeval w32_timeval
8
-struct timeval
9
-{
10
- long long tv_sec;
11
- long tv_usec;
12
-};
13
-
14
int usleep(unsigned int);
15
int gettimeofday(struct timeval *, void *);
16
int nanosleep(const struct timespec *, struct timespec *);
contrib/win32/win32compat/misc.c
@@ -207,7 +207,7 @@ gettimeofday(struct timeval *tv, void *tz)
207
us = (timehelper.ns - EPOCH_DELTA) / 10;
208
209
/* Stuff result into the timeval */
210
- tv->tv_sec = (long long)(us / USEC_IN_SEC);
+ tv->tv_sec = (long)(us / USEC_IN_SEC);
211
tv->tv_usec = (long)(us % USEC_IN_SEC);
212
213
return 0;
0 commit comments