diff options
author | Warner Losh <imp@FreeBSD.org> | 2024-11-20 03:17:31 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2024-11-20 03:35:04 +0000 |
commit | 7255a2969ff9ed2763391c854d7c2bed71a1a1c8 (patch) | |
tree | a710b5877810b2eea51633f256c9bc3926a33918 | |
parent | c29cba408d197ed2c267d0605e4225bb54153e01 (diff) | |
download | src-7255a2969ff9ed2763391c854d7c2bed71a1a1c8.tar.gz src-7255a2969ff9ed2763391c854d7c2bed71a1a1c8.zip |
stand: Don't need sys/select.h
The boot loader doesn't need the types and prototypes defined in
sys/select.h, so don't indirectly include it.
Sponsored by: Netflix
-rw-r--r-- | sys/sys/time.h | 2 | ||||
-rw-r--r-- | sys/sys/types.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/time.h b/sys/sys/time.h index f5c8d1d46471..d3a19ebfc811 100644 --- a/sys/sys/time.h +++ b/sys/sys/time.h @@ -611,7 +611,9 @@ int tvtohz(struct timeval *tv); #include <time.h> #include <sys/cdefs.h> +#ifndef _STANDALONE #include <sys/select.h> +#endif __BEGIN_DECLS int setitimer(int, const struct itimerval *, struct itimerval *); diff --git a/sys/sys/types.h b/sys/sys/types.h index 129ca0f2f4c4..fd375139a092 100644 --- a/sys/sys/types.h +++ b/sys/sys/types.h @@ -311,7 +311,9 @@ typedef _Bool bool; #if __BSD_VISIBLE +#ifndef _STANDALONE #include <sys/select.h> +#endif /* * The major and minor numbers are encoded in dev_t as MMMmmmMm (where |