[cygwin gcc-3.1] Patch to java/lang/natSystem.cc
Billinghurst, David (CRTS)
David.Billinghurst@riotinto.com
Sat Jun 8 19:45:00 GMT 2002
Patch to cygwin gcc-3.1 branch. This avoids the autoconf test, etc
that went into gcc-3.2.
2002-06-09 David Billinghurst <David.Billinghurst@riotinto.com>
* java/lang/natSystem.cc: Use _timezone on cygwin. Simplified
version of mainline patch.
Index: java/lang/natSystem.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/natSystem.cc,v
retrieving revision 1.48.2.4
diff -u -r1.48.2.4 natSystem.cc
--- java/lang/natSystem.cc 7 Apr 2002 11:30:08 -0000 1.48.2.4
+++ java/lang/natSystem.cc 9 Jun 2002 02:38:43 -0000
@@ -250,6 +250,10 @@
#ifdef STRUCT_TM_HAS_GMTOFF
// tm_gmtoff is secs EAST of UTC.
tzoffset = -(tim->tm_gmtoff) + tim->tm_isdst * 3600L;
+#elif defined (__CYGWIN__)
+ // A quick hack for cygwin special gcc-3.1
+ // A proper autoconf test is used for gcc-3.2
+ tzoffset = _timezone;
#elif HAVE_TIMEZONE
// timezone is secs WEST of UTC.
tzoffset = timezone;
More information about the Cygwin-apps
mailing list