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]
Other format: [Raw text]

Re: [Patch} fix call to time() in toplev.c


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



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