git: 6a88766ecdd3 - main - stand: We don't want signal definitions in the boot loader
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 20 Nov 2024 03:35:48 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=6a88766ecdd3a89439c7d21ee8e1ff5706bfde71
commit 6a88766ecdd3a89439c7d21ee8e1ff5706bfde71
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-11-20 02:57:46 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-11-20 02:57:46 +0000
stand: We don't want signal definitions in the boot loader
We don't support signals in the boot loader, so we don't need to include
sys/signal.h there. It pollutes the namespace.
Sponsored by: Netflix
---
sys/sys/param.h | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sys/sys/param.h b/sys/sys/param.h
index 388b3a05f718..79ecd58569a3 100644
--- a/sys/sys/param.h
+++ b/sys/sys/param.h
@@ -150,12 +150,10 @@
#endif
#endif
-#ifndef _KERNEL
-#ifndef LOCORE
+#if !defined(_KERNEL) && !defined(_STANDALONE) && !defined(LOCORE)
/* Signals. */
#include <sys/signal.h>
#endif
-#endif
/* Machine type dependent parameters. */
#include <machine/param.h>