diff options
| author | Brooks Davis <brooks@FreeBSD.org> | 2025-11-27 14:54:56 +0000 |
|---|---|---|
| committer | Brooks Davis <brooks@FreeBSD.org> | 2025-11-27 14:54:56 +0000 |
| commit | 528e70a12ca6ba07f1d8c88800871ceecbacfc70 (patch) | |
| tree | a3428bdce1aaefbc3ff7042461b02a7484c7083e | |
| parent | 85ab981a8e4e1a7a078dbf553cb20cb2e58aeff9 (diff) | |
sys/_types.h: add void * to __max_align_t
Add a pointer member to __max_align_t as pointers may have different
alignment requirements than long long or long double.
Reviewed by: kib
Effort: CHERI upstreaming
Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D53821
| -rw-r--r-- | sys/sys/_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/_types.h b/sys/sys/_types.h index e4d14da3c11e..7aa7f7bfeb72 100644 --- a/sys/sys/_types.h +++ b/sys/sys/_types.h @@ -206,6 +206,7 @@ typedef struct { long double __max_align2 __attribute__((__aligned__(__alignof__(long double)))); #endif + void *__max_align3 __attribute__((__aligned__(__alignof__(void *)))); } __max_align_t; /* Types for sys/acl.h */ |
