Commit 25ebd9e3 authored by Andy Polyakov's avatar Andy Polyakov
Browse files

bss_dgram.c,d1_lib.c: make it compile with mingw.

Submitted by: Roumen Petrov
(cherry picked from commit 972b0dc3)
parent bdfc0e28
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1901,7 +1901,11 @@ static void get_current_time(struct timeval *t)

	GetSystemTime(&st);
	SystemTimeToFileTime(&st,&now.ft);
#ifdef	__MINGW32__
	now.ul -= 116444736000000000ULL;
#else
	now.ul -= 116444736000000000UI64;	/* re-bias to 1/1/1970 */
#endif
	t->tv_sec  = (long)(now.ul/10000000);
	t->tv_usec = ((int)(now.ul%10000000))/10;
#elif defined(OPENSSL_SYS_VMS)
+4 −0
Original line number Diff line number Diff line
@@ -487,7 +487,11 @@ static void get_current_time(struct timeval *t)

	GetSystemTime(&st);
	SystemTimeToFileTime(&st,&now.ft);
#ifdef	__MINGW32__
	now.ul -= 116444736000000000ULL;
#else
	now.ul -= 116444736000000000UI64;	/* re-bias to 1/1/1970 */
#endif
	t->tv_sec  = (long)(now.ul/10000000);
	t->tv_usec = ((int)(now.ul%10000000))/10;
#elif defined(OPENSSL_SYS_VMS)