This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
tzname in natSystem.cc on darwin5.2
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: GCC-Java <java at gcc dot gnu dot org>
- Date: Fri, 28 Dec 2001 16:06:23 +0100
- Subject: tzname in natSystem.cc on darwin5.2
- Organization: zero
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