Index: otp/erts/emulator/sys/win32/erl_win_sys.h =================================================================== --- otp.orig/erts/emulator/sys/win32/erl_win_sys.h 2015-04-28 01:59:06.907774300 +0300 +++ otp/erts/emulator/sys/win32/erl_win_sys.h 2015-04-28 02:03:43.365738400 +0300 @@ -134,7 +134,11 @@ #define SYS_CLK_TCK 1000 #define SYS_CLOCK_RESOLUTION 1 -#if SIZEOF_TIME_T != 8 +#if SIZEOF_TIME_T == 4 +typedef __time32_t erts_time_t; +#elif SIZEOF_TIME_T == 8 +typedef __time64_t erts_time_t; +#else # error "Unexpected sizeof(time_t)" #endif @@ -143,7 +147,6 @@ * Types seen in beam_emu.c *need* to have the same size * as in the rest of the system... */ -typedef __int64 erts_time_t; struct tm *sys_localtime_r(time_t *epochs, struct tm *ptm); struct tm *sys_gmtime_r(time_t *epochs, struct tm *ptm);