Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm Sender: cygwin-apps-owner AT cygwin DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps AT cygwin DOT com Delivered-To: mailing list cygwin-apps AT cygwin DOT com Subject: [cygwin gcc-3.1] Patch to java/lang/natSystem.cc Date: Sun, 9 Jun 2002 12:45:25 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-ID: content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Billinghurst, David (CRTS)" To: X-OriginalArrivalTime: 09 Jun 2002 02:46:37.0842 (UTC) FILETIME=[E0405F20:01C20F5F] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g592jxR27350 Patch to cygwin gcc-3.1 branch. This avoids the autoconf test, etc that went into gcc-3.2. 2002-06-09 David Billinghurst * 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;