Subject: Re: changes?
To: Andrew Brown <atatat@atatdot.net>
From: Bill Studenmund <skippy@macro.Stanford.EDU>
List: port-i386
Date: 03/10/1999 18:48:33
On Wed, 10 Mar 1999, Andrew Brown wrote:

> ...
> >> ntp_timer.c:88: storage size of `itimer' isn't known
> >> ntp_timer.c:88: warning: unused variable `itimer'

> the prototype is there and it's fine.  the problem is the definition
> of struct itimerspec is missing.  there's only a forward declaration
> for it in /usr/include/time.h.

Right. That's because we don't support the API at present. We have the
stubs to be POSIX compliant...

> >What is the declaration of the variable itimer look like? Also, as you get
> >a variable-unused error, chances are that this variable, and the includes
> >to use it, are supposed to be within #ifdef's, and the variable's
> >declaration leaked out.
> 
> the important message here is "storage size of `itimer' isn't known",
> which means you will, of course, get a "variable not used" message
> since you can't possibly use it.

Are you sure? I just made a test file, and though I get the storage size
isn't known, I don't get "variable not used" errors. Unless I only have
the declaration.

> >sys/sys/time.h also is on the ftp server, and the 1.3 source seems to be
> >there too. Were you looking at ftp.netbsd.org, or a mirror. Mirrors
> >occasionally drop things to conserve space.
> 
> i had the same problem with 1.3.3 stuff i snarfed directly from
> ftp.netbsd.org.  i worked around it directly editing the config.h that
> configure generated to use a different code path.

Sounds like the best solution.

Take care,

Bill