[package - head-i386-default][sysutils/lsof] Failed for lsof-4.93.2_2,8 in build
Ian Lepore
ian at freebsd.org
Thu Jul 25 18:35:13 UTC 2019
On Thu, 2019-07-25 at 13:13 -0500, Larry Rosenman wrote:
> On 07/25/2019 1:10 pm, Alan Somers wrote:
> > On Thu, Jul 25, 2019 at 12:05 PM Larry Rosenman <ler at freebsd.org>
> > wrote:
> > >
> > > Um.... Who broke this?
> > >
> > > /usr/src/sys/sys/refcount.h:65:12: error: use of undeclared
> > > identifier
> > > 'false'
> > > return (false);
> > > ^
> > > [...]
> > >
> > "svn blame" suggests r350199 by kib. However, refcount.h should
> > only
> > be included if lsof defines _KERNEL, which normal programs
> > shouldn't.
> > So I think this should be considered a bug in lsof.
> > -Alan
>
>
> we *HAVE* to define _KERNEL, to get at the kernel structures.....
Then you have to follow the rules (from style(9))...
If either <sys/types.h> or <sys/param.h> is needed, include it
before other include files. (<sys/param.h> includes <sys/types.h>;
do not include both.)
Typically, if you're including anything from sys/ you'll need
sys/types.h first.
-- Ian
More information about the freebsd-current
mailing list