diff options
| author | Perdixky <3293789706@qq.com> | 2026-03-05 12:26:03 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2026-03-07 07:51:14 +0000 |
| commit | 9f2eb94736eaf9a86cef75fe54c43c64132ec312 (patch) | |
| tree | 45b03be6e6a9a57898d2881f6ac8f04e7f3b5170 | |
| parent | 9006a731bc951c5b62efc4bf75a0c5b42586d279 (diff) | |
Add __unused workaround for linux/sys/types.h
Signed-off-by: Perdixky <3293789706@qq.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/2063
| -rw-r--r-- | tools/build/cross-build/include/linux/sys/types.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
