Index: otp/erts/emulator/sys/win32/erl_win_sys.h =================================================================== --- otp.orig/erts/emulator/sys/win32/erl_win_sys.h 2011-12-17 19:53:02.000000000 +0200 +++ otp/erts/emulator/sys/win32/erl_win_sys.h 2011-12-17 20:18:04.000000000 +0200 @@ -126,7 +126,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 @@ -135,7 +139,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);