This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: libf2c gettimeofday stuff
- To: Dave Love <d dot love at dl dot ac dot uk>
- Subject: Re: libf2c gettimeofday stuff
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 12 Oct 1999 02:38:30 -0600
- cc: gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <rzqhfq8ft2o.fsf@djlvig.dl.ac.uk>you write:
> In addition to what Mumit said about the horrors of gettimeofday used
> in libf2c/libU77, it appears from the Emacs sources that on some
> systems it only takes a single arg.
>
> Here's a largely untested suggestion to cope with that by supplying a
> packaged autoconf test, partly cribbing from Emacs.
>
> 1999-04-22 Dave Love <fx@gnu.org>
>
> * libU77/aclocal.m4: Re-write, defining LIBU77_GETTIMEOFDAY, not
> LIBU77_HAVE_STRUCT_TIMEZONE.
>
> * libU77/configure.in: Use LIBU77_GETTIMEOFDAY, not
> LIBU77_HAVE_STRUCT_TIMEZONE. Don't check for gettimeofday
> separately.
>
> * libU77/datetime_.c (G77_date_and_time_0): Use
> GETTIMEOFDAY_ONE_ARGUMENT.
I installed this (old) patch. Presumably if it causes problems on systems
with weird gettimeofday functions we'll hear about it. :-)
jeff