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]

Re: tzname in natSystem.cc on darwin5.2




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.


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