From: cheloha Date: Sun, 14 Jan 2024 17:23:56 +0000 (+0000) Subject: sys/sched.h: conceal inclusion from userspace X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b533a222ab394a389180c6ea20c8e81c68bf8f87;p=openbsd sys/sched.h: conceal inclusion from userspace Nothing outside of the _KERNEL guard in needs , so move its inclusion under _KERNEL. Requested by claudio@. Link: https://marc.info/?l=openbsd-tech&m=169937494818685&w=2 ok claudio@ --- diff --git a/sys/sys/sched.h b/sys/sys/sched.h index e86d6b64727..a2158fcea5d 100644 --- a/sys/sys/sched.h +++ b/sys/sys/sched.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sched.h,v 1.68 2024/01/14 17:11:55 cheloha Exp $ */ +/* $OpenBSD: sched.h,v 1.69 2024/01/14 17:23:56 cheloha Exp $ */ /* $NetBSD: sched.h,v 1.2 1999/02/28 18:14:58 ross Exp $ */ /*- @@ -69,8 +69,6 @@ #ifndef _SYS_SCHED_H_ #define _SYS_SCHED_H_ -#include - /* * Posix defines a which may want to include */ @@ -97,6 +95,8 @@ struct cpustats { #ifdef _KERNEL +#include + #define SCHED_NQS 32 /* 32 run queues. */ struct clockintr;