git: be1bdeb36c01 - main - sdiotool: Use the system bool type

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Thu, 05 Nov 2026 14:52:28 UTC
The branch main has been updated by manu:

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

commit be1bdeb36c017c5d5d0311458fcde59a36a64aa5
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2026-10-22 16:39:03 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2026-11-05 14:52:11 +0000

    sdiotool: Use the system bool type
    
    linux_compat.h redefined bool as int8_t, overriding the _Bool definition provided by sys/types.h.  This changes the size and semantics of bool and conflicts with headers that include stdbool.h, such as cam/cam.h.  Rely on the system definition instead.
    
    Reviewed by:    oh
    Differential Revision:  https://reviews.freebsd.org/D61027
---
 usr.bin/sdiotool/linux_compat.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/usr.bin/sdiotool/linux_compat.h b/usr.bin/sdiotool/linux_compat.h
index 58611fe52242..fcd2ba550da5 100644
--- a/usr.bin/sdiotool/linux_compat.h
+++ b/usr.bin/sdiotool/linux_compat.h
@@ -36,9 +36,6 @@
 #define u8 uint8_t
 #define u16 uint16_t
 #define s32 int32_t
-#define bool int8_t
-#define true 1
-#define false 0
 
 #define usleep_range(a, b) usleep(a)
 #define ENOMEDIUM -1