diff --git a/src/interfaces/ecpg/pgtypeslib/dt.h b/src/interfaces/ecpg/pgtypeslib/dt.h index fa74a23f4b..a97a414c34 100644 --- a/src/interfaces/ecpg/pgtypeslib/dt.h +++ b/src/interfaces/ecpg/pgtypeslib/dt.h @@ -220,7 +220,11 @@ do { \ #if !defined(__CYGWIN__) && !defined(WIN32) #define TIMEZONE_GLOBAL timezone #else +#if defined(WIN32) #define TIMEZONE_GLOBAL _timezone +#else +#define TIMEZONE_GLOBAL ((int)_timezone) /* time_t on Cywgin */ +#endif #define tzname _tzname /* should be in time.h? */ #endif