ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2002/06/08/22:46:00

Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm
Sender: cygwin-apps-owner AT cygwin DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT cygwin DOT com>
List-Help: <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs>
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
Message-ID: <FAC87D7C874EAB46A847604DA4FD5A64034742@crtsmail.corp.riotinto.org>
content-class: urn:content-classes:message
X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3
From: "Billinghurst, David (CRTS)" <David DOT Billinghurst AT riotinto DOT com>
To: <cygwin-apps AT gcc DOT gnu DOT org>
X-OriginalArrivalTime: 09 Jun 2002 02:46:37.0842 (UTC) FILETIME=[E0405F20:01C20F5F]
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 <David DOT Billinghurst AT riotinto DOT 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
diff -u -r1.48.2.4 natSystem.cc
--- java/lang/natSystem.cc      7 Apr 2002 11:30:08 -0000
+++ java/lang/natSystem.cc      9 Jun 2002 02:38:43 -0000
@@ -250,6 +250,10 @@
   // 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;
   // timezone is secs WEST of UTC.
   tzoffset = timezone;

- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019