This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: (2/6): i386-pc-interix support -- libf2c
- To: law at cygnus dot com
- Subject: Re: (2/6): i386-pc-interix support -- libf2c
- From: Mumit Khan <khan at xraylith dot wisc dot edu>
- Date: Sat, 30 Jan 1999 12:42:12 -0600
- cc: egcs-patches at cygnus dot com
Jeffrey A Law <law@hurl.cygnus.com> writes:
> >
> > * libU77/datetime_.c (G77_date_and_time_0): Add workaround for
> > Interix's lack of struct timezone.
> Hmmm, hpux also declares gettimeofday as (struct timeval *, void *), so I
> wonder how we deal with this on hpux.
>
> Hmmm, seems like we do have a struct timezone though.
>
> Maybe the way to go is to build an autoconf test which includes the various
> time, sys/time, whatever the box has then does
>
> struct timezone tzp;
>
> If you can compile the file without errors, then you have struct timezone,
> else you do not.
I was afraid you's suggest that ;-) I have something cooking, but need to
test it on multiple platforms before it can be reliable. So far I've found
3 different versions (the usual, HP-UX and Interix, which is like HP-UX
sans the struct timezone decl).
Dave, any comments?
Regards,
Mumit