This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

tzname in natSystem.cc on darwin5.2


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]