From: Jeff Lenk Date: Fri, 10 May 2013 17:46:03 +0000 (-0500) Subject: spandsp windows fix syntax for gettimeofday X-Git-Tag: v1.5.1~86 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b85c24df081024a1ad450a80a95ec818ea5a911b;p=thirdparty%2Ffreeswitch.git spandsp windows fix syntax for gettimeofday --- diff --git a/libs/spandsp/src/msvc/gettimeofday.c b/libs/spandsp/src/msvc/gettimeofday.c index 66422e1087..83704180a9 100644 --- a/libs/spandsp/src/msvc/gettimeofday.c +++ b/libs/spandsp/src/msvc/gettimeofday.c @@ -4,7 +4,7 @@ #include "windows.h" -const unsigned long long int DELTA_EPOCH_IN_MICROSECS = 11644473600000000LLU +const unsigned long long int DELTA_EPOCH_IN_MICROSECS = 11644473600000000; void gettimeofday(struct timeval *tv, void *tz) { @@ -31,6 +31,6 @@ void gettimeofday(struct timeval *tv, void *tz) /* Add timezone bias conververt from minutes to microsecond */ highResolutionTime -= timezone_time_bias_in_minutes*60*1000000; highResolutionTime -= DELTA_EPOCH_IN_MICROSECS; - tv->tv_sec = (long int) (highResolutionTime/1000000LLU); - tv->tv_usec = (highResolutionTime%1000000LLU); + tv->tv_sec = (long int) (highResolutionTime/1000000); + tv->tv_usec = (highResolutionTime%1000000); }