Date: Wed, 20 Nov 2024 03:35:50 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 7255a2969ff9 - main - stand: Don't need sys/select.h Message-ID: <202411200335.4AK3Zobd099550@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=7255a2969ff9ed2763391c854d7c2bed71a1a1c8 commit 7255a2969ff9ed2763391c854d7c2bed71a1a1c8 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2024-11-20 03:17:31 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2024-11-20 03:35:04 +0000 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 --- sys/sys/time.h | 2 ++ sys/sys/types.h | 2 ++ 2 files changed, 4 insertions(+) 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411200335.4AK3Zobd099550>