The branch main has been updated by imp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=7255a2969ff9ed2763391c854d7c2bed71a1a1c8

commit 7255a2969ff9ed2763391c854d7c2bed71a1a1c8
Author:     Warner Losh <[email protected]>
AuthorDate: 2024-11-20 03:17:31 +0000
Commit:     Warner Losh <[email protected]>
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

Reply via email to