On Sun, Aug 11, 2024 at 11:57:57PM +0300, Vitaliy Makkoveev wrote:
> On Sun, Aug 11, 2024 at 11:51:47PM +0300, Vitaliy Makkoveev wrote:
> > Sorry about that. Please give me 5 min to fix it.
> > 
> > > On 11 Aug 2024, at 23:46, Theo Buehler <t...@theobuehler.org> wrote:
> > > 
> > > libkvm fails to build with this diff because userland doesn't know about
> > > struct refcount:
> > > 
> > > cc -O2 -pipe -g -D_LIBKVM  -MD -MP  -c /usr/src/lib/libkvm/kvm_proc.c -o
> > > kvm_proc.o
> > > In file included from /usr/src/lib/libkvm/kvm_proc.c:76:
> > > /usr/include/sys/proc.h:145:16: error: field has incomplete type 'struct 
> > > refcnt'
> > >        struct refcnt ps_refcnt;
> > >                         ^
> > 
> 
> Add missing refcnt.h header.

ok, thanks

> 
> Index: sys/sys/proc.h
> ===================================================================
> RCS file: /cvs/src/sys/sys/proc.h,v
> retrieving revision 1.368
> diff -u -p -r1.368 proc.h
> --- sys/sys/proc.h    11 Aug 2024 15:10:53 -0000      1.368
> +++ sys/sys/proc.h    11 Aug 2024 20:55:00 -0000
> @@ -50,6 +50,7 @@
>  #include <sys/resource.h>            /* For struct rusage */
>  #include <sys/rwlock.h>                      /* For struct rwlock */
>  #include <sys/sigio.h>                       /* For struct sigio */
> +#include <sys/refcnt.h>                      /* For struct refcnt */
>  
>  #ifdef _KERNEL
>  #include <sys/atomic.h>

Reply via email to