From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20797 invoked by alias); 2 May 2002 04:21:42 -0000 Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org Received: (qmail 20790 invoked from network); 2 May 2002 04:21:41 -0000 Received: from unknown (HELO mail.riotinto.com.au) (57.70.13.254) by sources.redhat.com with SMTP; 2 May 2002 04:21:41 -0000 Received: from corehub1.ex.riotinto.org ([203.3.63.116]) by mail.riotinto.com.au with Microsoft SMTPSVC(5.0.2195.4821); Thu, 2 May 2002 14:19:12 +1000 Received: from tbspmail.corp.riotinto.org ([192.207.121.96]) by corehub1.ex.riotinto.org with Microsoft SMTPSVC(5.0.2195.4821); Thu, 2 May 2002 14:18:56 +1000 Received: from crtsmail.corp.riotinto.org ([203.4.72.10]) by tbspmail.corp.riotinto.org with Microsoft SMTPSVC(5.0.2195.2966); Thu, 2 May 2002 12:18:44 +0800 X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: HAVE_TIMEZONE and cygwin Date: Wed, 01 May 2002 21:21:00 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Billinghurst, David (CRTS)" To: X-OriginalArrivalTime: 02 May 2002 04:18:44.0427 (UTC) FILETIME=[72A7D1B0:01C1F190] X-SW-Source: 2002-05/txt/msg00008.txt.bz2 The cygwin patch for natSystem.cc (http://gcc.gnu.org/ml/java-patches/2002-q2/msg00252.html)=20 probably should read something like #elif HAVE_UNDERSCORE_TIMEZONE tzoffset =3D _timezone; #elif HAVE_TIMEZONE // timezone is secs WEST of UTC. tzoffset =3D timezone;=09 #else // FIXME: there must be another global if neither tm_gmtoff nor timezone // is available, esp. if tzname is valid. To do this we need to add to libjava/configure.in=20 a test something like AC_TRY_COMPILE([#include ], [long z2 =3D _timezone;], [AC_DEFINE(HAVE_UNDERSCORE_TIMEZONE) AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)])]) and preferably get the existing test=20=20=20=20 AC_TRY_COMPILE([#include ], [long z2 =3D timezone;], [AC_DEFINE(HAVE_TIMEZONE) AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)])]) to fail for the cygwin which has char *_EXFUN(timezone, (void));