diff --git a/sys/sys/select.h b/sys/sys/select.h index 4909a341f5b0..874758b3de38 100644 --- a/sys/sys/select.h +++ b/sys/sys/select.h @@ -37,6 +37,7 @@ #ifndef _SYS_SELECT_H_ #define _SYS_SELECT_H_ +#ifdef _KERNEL #include /* for struct klist */ /* @@ -50,7 +51,6 @@ struct selinfo { }; #define SI_COLL 0x0001 /* collision occurred */ -#ifdef _KERNEL struct proc; void selrecord __P((struct proc *selector, struct selinfo *)); diff --git a/sys/sys/selinfo.h b/sys/sys/selinfo.h index 4909a341f5b0..874758b3de38 100644 --- a/sys/sys/selinfo.h +++ b/sys/sys/selinfo.h @@ -37,6 +37,7 @@ #ifndef _SYS_SELECT_H_ #define _SYS_SELECT_H_ +#ifdef _KERNEL #include /* for struct klist */ /* @@ -50,7 +51,6 @@ struct selinfo { }; #define SI_COLL 0x0001 /* collision occurred */ -#ifdef _KERNEL struct proc; void selrecord __P((struct proc *selector, struct selinfo *));