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
This commit is contained in:
Perdixky
2026-03-05 20:26:03 +08:00
committed by Warner Losh
parent 9006a731bc
commit 9f2eb94736
@@ -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