NetBSD-Bugs archive

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

Re: lib/53125: sys/timevar.h is absent in installed systems.



The following reply was made to PR lib/53125; it has been noted by GNATS.

From: Utkarsh Anand <utkarsh009%yandex.com@localhost>
To: "gnats-bugs%NetBSD.org@localhost" <gnats-bugs%netbsd.org@localhost>,
	"lib-bug-people%netbsd.org@localhost" <lib-bug-people%netbsd.org@localhost>,
	"gnats-admin%netbsd.org@localhost" <gnats-admin%netbsd.org@localhost>,
	"netbsd-bugs%netbsd.org@localhost" <netbsd-bugs%netbsd.org@localhost>
Cc: 
Subject: Re: lib/53125: sys/timevar.h is absent in installed systems.
Date: Sat, 24 Mar 2018 16:54:16 +0530

 24.03.2018, 16:47, "Utkarsh Anand" <utkarsh009%yandex.com@localhost>:
 
 > If this builds, I wouldn't need to define _KERNEL:
 >
 > #define _KMEMUSER
 > #include <uvm/uvm_map.h>
 > int main(){
 >     return 0;
 > }
 >
 > NB: vaddr_t, vsize_t etc. are defined in <machine/types.h>. Maybe including those in the files under uvm/, that need them, might help.
 
 Actually, I don't even think it would build with _KERNEL defined, because uvm/uvm_pager.h doesn't include any file (let alone conditional inclusion) but needs to have vaddr_t. So, I'd probably get the same error even with _KERNEL defined and timevar.h present. I think including <machine/types.h> in those files should help.
 



Home | Main Index | Thread Index | Old Index