From 0659e0e3df6a29122914540ea13e7373ec84ab8e Mon Sep 17 00:00:00 2001 From: David Billinghurst Date: Fri, 3 May 2002 20:17:48 +0000 Subject: natSystem.cc (getSystemTimeZone): Use HAVE_UNDERSCORE_TIMEZONE. 2002-05-03 David Billinghurst Tom Tromey * java/lang/natSystem.cc (getSystemTimeZone): Use HAVE_UNDERSCORE_TIMEZONE. * include/config.h.in: Rebuilt. * acconfig.h (HAVE_UNDERSCORE_TIMEZONE, HAVE_BACKTRACE): Undef. * aclocal.m4, configure: Rebuilt. * acinclude.m4: Run AC_EXEEXT. * configure.in: Adjust test for `timezone' so it fails on Cygwin. Add test for `_timezone'. Co-Authored-By: Tom Tromey From-SVN: r53117 --- libjava/java/lang/natSystem.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libjava/java') diff --git a/libjava/java/lang/natSystem.cc b/libjava/java/lang/natSystem.cc index b8467f2..386d8b0 100644 --- a/libjava/java/lang/natSystem.cc +++ b/libjava/java/lang/natSystem.cc @@ -250,6 +250,8 @@ java::lang::System::getSystemTimeZone (void) #ifdef STRUCT_TM_HAS_GMTOFF // tm_gmtoff is secs EAST of UTC. tzoffset = -(tim->tm_gmtoff) + tim->tm_isdst * 3600L; +#elif HAVE_UNDERSCORE_TIMEZONE + tzoffset = _timezone; #elif HAVE_TIMEZONE // timezone is secs WEST of UTC. tzoffset = timezone; -- cgit v1.1