File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
contrib/win32/win32compat Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change
1
+ #pragma once
1
2
#include <sys\utime.h>
2
3
3
4
#define utimbuf _utimbuf
4
5
#define utimes w32_utimes
5
6
7
+ #define timeval w32_timeval
8
+ struct timeval
9
+ {
10
+ long long tv_sec ;
11
+ long tv_usec ;
12
+ };
13
+
6
14
int usleep (unsigned int );
7
15
int gettimeofday (struct timeval * , void * );
8
16
int nanosleep (const struct timespec * , struct timespec * );
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ gettimeofday(struct timeval *tv, void *tz)
207
207
us = (timehelper .ns - EPOCH_DELTA ) / 10 ;
208
208
209
209
/* Stuff result into the timeval */
210
- tv -> tv_sec = (long )(us / USEC_IN_SEC );
210
+ tv -> tv_sec = (long long )(us / USEC_IN_SEC );
211
211
tv -> tv_usec = (long )(us % USEC_IN_SEC );
212
212
213
213
return 0 ;
You can’t perform that action at this time.
0 commit comments