This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch} fix call to time() in toplev.c
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 08 Jul 2003 09:12:35 +0100
- Subject: Re: [Patch} fix call to time() in toplev.c
- Organization: Codesourcery LLC
- References: <20030708010401.44375.qmail@web21412.mail.yahoo.com>
Danny Smith wrote:
Hello.
The call to time() in toplev.c (randomize) breaks build on systems without
gettimeofday. The ANSI prototype for function time is;
time_t time (time_t);
This fixes:
2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
* toplev.c (randomize): Correct call to time().
thanks! (If you don't have write access email me privately)
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
The voices in my head said this was stupid too
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk