The branch main has been updated by imp:

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

commit 9f2eb94736eaf9a86cef75fe54c43c64132ec312
Author:     Perdixky <[email protected]>
AuthorDate: 2026-03-05 12:26:03 +0000
Commit:     Warner Losh <[email protected]>
CommitDate: 2026-03-07 07:51:14 +0000

    Add __unused workaround for linux/sys/types.h
    
    Signed-off-by: Perdixky <[email protected]>
    Reviewed by: imp
    Pull Request: https://github.com/freebsd/freebsd-src/pull/2063
---
 tools/build/cross-build/include/linux/sys/types.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/build/cross-build/include/linux/sys/types.h 
b/tools/build/cross-build/include/linux/sys/types.h
index 2e09cbb62271..8d5a798db11e 100644
--- a/tools/build/cross-build/include/linux/sys/types.h
+++ b/tools/build/cross-build/include/linux/sys/types.h
@@ -56,7 +56,10 @@ typedef uint16_t __uint16_t;
 typedef uint8_t  __uint8_t;
 #endif
 
+/* <bits/struct_mutex.h> contains a member named __unused. */
+#include "../__unused_workaround_start.h"
 #include_next <sys/types.h>
+#include "../__unused_workaround_end.h"
 
 /*
  * stddef.h for both gcc and clang will define __size_t when size_t has

Reply via email to