On Wed 28 Mar 2007 (14:27 -0700), Russ Allbery wrote:
> Øystein Johansen <[EMAIL PROTECTED]> writes:
> 
> > There was a problem in dice.c
> 
> > dice.c: In function .RNGSystemSeed.:
> > dice.c:789: error: storage size of .tz. isn.t known
> 
> >     if( !f ) {
> > #if HAVE_GETTIMEOFDAY
> >     struct timeval tv;
> >     struct timezone tz;
> 
> >     if( !gettimeofday( &tv, &tz ) )
> >         n = tv.tv_sec ^ tv.tv_usec;
> >     else
> > #endif
> 
> No modern Unix system does anything with the second argument to
> gettimeofday any more.  You can almost certainly just delete the tz
> variable and change &tz to NULL in the call.

But I would expect including sys/time.h to be sufficient to make the
above compie without errors. It seems odd that it should fail.

-- 
Jim Segrave           [EMAIL PROTECTED]




_______________________________________________
Bug-gnubg mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnubg

Reply via email to