Index: java/lang/natSystem.cc =================================================================== RCS file: /cvs/gcc/gcc/libjava/java/lang/natSystem.cc,v retrieving revision 1.35.2.2 diff -u -p -r1.35.2.2 natSystem.cc --- natSystem.cc 2001/04/02 05:22:09 1.35.2.2 +++ natSystem.cc 2001/04/16 06:27:14 @@ -251,7 +251,11 @@ java::lang::System::getSystemTimeZone (v #ifdef STRUCT_TM_HAS_GMTOFF tzoffset = -(tim->tm_gmtoff); // tm_gmtoff is secs EAST of UTC. #elif HAVE_TIMEZONE +#ifdef __CYGWIN__ + tzoffset = _timezone; +#else tzoffset = timezone; // timezone is secs WEST of UTC. +#endif /* CYGWIN */ #else // FIXME: there must be another global if neither tm_gmtoff nor timezone // is available, esp. if tzname is valid. Index: java/lang/reflect/natMethod.cc =================================================================== RCS file: /cvs/gcc/gcc/libjava/java/lang/reflect/natMethod.cc,v retrieving revision 1.20 diff -u -p -r1.20 natMethod.cc --- natMethod.cc 2001/01/08 23:28:56 1.20 +++ natMethod.cc 2001/04/16 06:27:15 @@ -13,6 +13,9 @@ details. */ #if HAVE_ALLOCA_H #include #endif +#ifdef __CYGWIN__ +#define alloca __builtin_alloca +#endif #include #include Index: java/util/natGregorianCalendar.cc =================================================================== RCS file: /cvs/gcc/gcc/libjava/java/util/natGregorianCalendar.cc,v retrieving revision 1.8 diff -u -p -r1.8 natGregorianCalendar.cc --- natGregorianCalendar.cc 2000/12/28 05:55:56 1.8 +++ natGregorianCalendar.cc 2001/04/16 06:27:16 @@ -41,7 +41,11 @@ java::util::GregorianCalendar::computeTi #if defined (STRUCT_TM_HAS_GMTOFF) t -= tim.tm_gmtoff; #elif defined (HAVE_TIMEZONE) +#ifdef __CYGWIN__ + t += _timezone; +#else t += timezone; +#endif /* CYGWIN */ #endif // Adjust for milliseconds. time = t * (jlong) 1000 + elements(fields)[MILLISECOND];