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.

24.03.2018, 17:15, "Robert Elz" <>:
> The following reply was made to PR lib/53125; it has been noted by GNATS.
> From: Robert Elz <kre%munnari.OZ.AU@localhost>
> To:
> Cc:
> Subject: Re: lib/53125: sys/timevar.h is absent in installed systems.
> Date: Sat, 24 Mar 2018 18:40:17 +0700
>      Date: Sat, 24 Mar 2018 10:30:01 +0000 (UTC)
>      From:
>      Message-ID: <>
>    | I was compiling a file on NetBSD where I needed to #define _KERNEL,
>  Are you compiling part of the kernel? If not, you should not be defining
>  that. If you are, then src/sys/sys should be in the include path, and
>  _KERNEL should be defined without needing a #define

No. I am trying to compile a general purpose application that is not available in pkgsrc.
Thanks for the information, but the plan has changed (see previous mail for reasons).
I want to do it by defining _KMEMUSER. 
Any thoughts on including <machine/types.h> in uvm/* files that need them?
That should solve the problem and I can commit the changes if others agree.
>    | Try compiling a C file with the following content:
>    | #define _KERNEL
>    | #include <sys/time.h>
>  Are you sure that you don't just want <time.h> ?
It's there only because of nested inclusions. I don't need it directly. I need sys/sysctl.h
>  kre

Home | Main Index | Thread Index | Old Index