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
12#include <sys\utime.h>
23
34#define utimbuf _utimbuf
45#define utimes w32_utimes
56
7+ #define timeval w32_timeval
8+ struct timeval
9+ {
10+ long long tv_sec ;
11+ long tv_usec ;
12+ };
13+
614int usleep (unsigned int );
715int gettimeofday (struct timeval * , void * );
816int 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)
207207 us = (timehelper .ns - EPOCH_DELTA ) / 10 ;
208208
209209 /* Stuff result into the timeval */
210- tv -> tv_sec = (long )(us / USEC_IN_SEC );
210+ tv -> tv_sec = (long long )(us / USEC_IN_SEC );
211211 tv -> tv_usec = (long )(us % USEC_IN_SEC );
212212
213213 return 0 ;
You can’t perform that action at this time.
0 commit comments