From b533a222ab394a389180c6ea20c8e81c68bf8f87 Mon Sep 17 00:00:00 2001 From: cheloha Date: Sun, 14 Jan 2024 17:23:56 +0000 Subject: [PATCH] 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@ --- sys/sys/sched.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.20.1