Index: otp/erts/emulator/sys/win32/erl_win_sys.h =================================================================== --- otp.orig/erts/emulator/sys/win32/erl_win_sys.h 2013-05-11 13:50:32.304734200 +0300 +++ otp/erts/emulator/sys/win32/erl_win_sys.h 2013-05-11 13:50:45.914370500 +0300 @@ -131,7 +131,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 @@ -140,7 +144,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);