git: 6bd922e1540a - main - camcontrol: Include stdbool.h rather than relying on namespace pollution
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 19 Jun 2023 20:56:41 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=6bd922e1540aaca1e258493f429b628110799c3b
commit 6bd922e1540aaca1e258493f429b628110799c3b
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-06-19 20:52:58 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-06-19 20:54:32 +0000
camcontrol: Include stdbool.h rather than relying on namespace pollution
I have several environments, and at least one of them fails to build
because bool is undefined. Since we use bool, always include stdbool.h
rather than relying on any indirect definitions to pull it in.
Sponsored by: Netflix
---
sbin/camcontrol/camcontrol.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c
index 4856122a0c07..fb567b6829a4 100644
--- a/sbin/camcontrol/camcontrol.c
+++ b/sbin/camcontrol/camcontrol.c
@@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$");
#include <sys/endian.h>
#include <sys/sbuf.h>
+#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>