HAVE_TIMEZONE and cygwin

Billinghurst, David (CRTS) David.Billinghurst@riotinto.com
Wed May 1 21:21:00 GMT 2002

The cygwin patch for natSystem.cc
probably should read something like

   tzoffset = _timezone;
   // timezone is secs WEST of UTC.
   tzoffset = timezone;	
   // 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 
a test something like

   AC_TRY_COMPILE([#include <time.h>], [long z2 = _timezone;],

and preferably get the existing test    

   AC_TRY_COMPILE([#include <time.h>], [long z2 = timezone;],

to fail for the cygwin <time.h> which has
  char *_EXFUN(timezone, (void));

More information about the Java mailing list