This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: (2/6): i386-pc-interix support -- libf2c


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



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