This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: patch2 darwin & libgcj
- 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>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 02 Jan 2002 12:22:25 +0100
- Subject: Re: patch2 darwin & libgcj
- Organization: zero
- References: <3C2DF8CB.8E55E6FB@pop.agri.ch> <871yh9bp2r.fsf@creche.redhat.com>
Tom Tromey wrote:
>
> >>>>> "Andreas" == Andreas Tobler <toa@pop.agri.ch> writes:
>
> Andreas> P.S, I don't send the configure diff since I'm not sure about
> Andreas> it. Do I have to provide this or is anyone else able to
> Andreas> update it?
>
> I'll regenerate configure when I check in the patch. Don't send
> configure diffs, as they just hide the real patch.
Thanks,
> char *tz1, *tz2;
> #ifdef HAVE_TM_ZONE
> tz1 = tim->tm_zone;
> tz2 = NULL;
> #elif defined (HAVE_TZNAME)
> tz1 = tzname[0];
> tz2 = strcmp (tzname[0], tzname[1]) ? tzname[1] : NULL;
> #else
> #error etc
> #endif
Here I have an additional question: on darwin the tm_zone is defined as
char* while on powerpc-linux it is defined as const char*.
So the assignement tz1 = tim->tm_zone is not a valid one.
How should I go on here? tz1 const char* ?
Thanks,
Andreas