Index: otp/erts/emulator/sys/win32/erl_win_sys.h =================================================================== --- otp.orig/erts/emulator/sys/win32/erl_win_sys.h 2013-12-07 02:50:03.922125000 +0200 +++ otp/erts/emulator/sys/win32/erl_win_sys.h 2013-12-07 02:50:10.594000000 +0200 @@ -132,7 +132,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 @@ -141,7 +145,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);