sys/_types.h: add __intptr_t to __mbstate_t

Extend __mbstate_t to include an intptr_t to ensure it can hold a
pointer if required.

Reviewed by:	kib, markj
Effort:		CHERI upstreaming
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D53822
This commit is contained in:
Brooks Davis
2025-11-27 14:54:56 +00:00
parent 528e70a12c
commit 6ebbfe723b
+1
View File
@@ -229,6 +229,7 @@ typedef __uint32_t __fixpt_t; /* fixed point number */
typedef union {
char __mbstate8[128];
__int64_t _mbstateL; /* for alignment */
__intptr_t _mbstateP; /* for alignment */
} __mbstate_t;
typedef __uintmax_t __rman_res_t;