tzname in natSystem.cc on darwin5.2

Andreas Tobler toa@pop.agri.ch
Fri Dec 28 07:12:00 GMT 2001


Hi,
while playing around to get libgcj compiled under darwin I failed here:
../../../gcc/libjava/java/lang/natSystem.cc: In static member function
`static 
 java::lang::String* java::lang::System::getSystemTimeZone()':
../../../gcc/libjava/java/lang/natSystem.cc:266: `tzname' undeclared
(first use 
 this function)
AFAICS under darwin tzname is not defined. So how can I get this to work
under darwin? Is it defined everywhere else?
In the autoconf e.g. there is a macro AC_STRUCT_TIMEZONE:
"Figure out how to get the current timezone. If struct tm has a tm_zone
member, define HAVE_TM_ZONE. Otherwise, if the external array tzname is
found, define HAVE_TZNAME". 
>From this macro I assume that other systems don't use tzname as well. 

Any lights?
Thanks,
Andreas
P.S: not subscribed to java@gcc


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /