natSystem.cc (getSystemTimeZone): Use HAVE_UNDERSCORE_TIMEZONE.
2002-05-03 David Billinghurst <David.Billinghurst@riotinto.com> Tom Tromey <tromey@redhat.com> * 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 <tromey@redhat.com> From-SVN: r53117
This commit is contained in:
parent
5833ab666f
commit
0659e0e3df
8 changed files with 340 additions and 325 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue