tzname in natSystem.cc on darwin5.2
Andreas Tobler
toa@pop.agri.ch
Fri Dec 28 14:52:00 GMT 2001
Tom Tromey wrote:
>> >>>>> "Andreas" == Andreas Tobler <toa@pop.agri.ch> writes:
>> Andreas> AFAICS under darwin tzname is not defined. So how can I get
> Andreas> this to work under darwin? Is it defined everywhere else?
>> It is probably defined everywhere libgcj has been built.
So not on darwin :-)
> Andreas> In the autoconf e.g. there is a macro AC_STRUCT_TIMEZONE:
>> Could you write a patch for this? Just add the macro to configure.in
> (and re-run autoconf) and then change natSystem.cc appropriately.
It's the first time I try that.
Ok,
- add AC_STRUCT_TIMEZONE to configure.in in libjava (where exactly? somewhere?),
- rerun autoconf which produces a new configure.
- add a check in natSystem.cc
if HAVE_TZNAME { tzinfo = tzname;}
elif HAVE_TM_TIMEZONE { tzinfo = &tim->tm_zone;} <-- here I'm not sure
how to do the cast since I don't know the type of tzname, sorry, need
help here)
endif
Thanks,
Andreas
P.S. the patch will follow asap I get it to work.
More information about the Java
mailing list