This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[cygwin gcc-3.1] Patch to java/lang/natSystem.cc


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]