bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] more build problem


From: Jim Segrave
Subject: Re: [Bug-gnubg] more build problem
Date: Sat, 31 Mar 2007 12:01:22 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

On Wed 28 Mar 2007 (14:27 -0700), Russ Allbery wrote:
> Øystein Johansen <address@hidden> 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           address@hidden






reply via email to

[Prev in Thread] Current Thread [Next in Thread]