This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: tzname in natSystem.cc on darwin5.2
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: tromey at redhat dot com
- Cc: GCC-Java <java at gcc dot gnu dot org>
- Date: Fri, 28 Dec 2001 23:48:04 +0100
- Subject: Re: tzname in natSystem.cc on darwin5.2
- Organization: zero
- References: <3C2C8A6F.6262CC57@pop.agri.ch> <87g05vvzym.fsf@creche.redhat.com>
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.