From f65ed89a55172f2df5d214c854eaa9dadf7be35d Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Tue, 12 Jul 2022 13:09:02 +0100 Subject: [PATCH] cheri: nptl: fix pthread_attr_t alignment Alignment of the public definition did not match the internal layout. Ensure that the type is at least pointer aligned. --- sysdeps/nptl/bits/pthreadtypes.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sysdeps/nptl/bits/pthreadtypes.h b/sysdeps/nptl/bits/pthreadtypes.h index 706c2bb4955..f889b8926f6 100644 --- a/sysdeps/nptl/bits/pthreadtypes.h +++ b/sysdeps/nptl/bits/pthreadtypes.h @@ -61,6 +61,7 @@ union pthread_attr_t { char __size[__SIZEOF_PTHREAD_ATTR_T]; long int __align; + void * __align_p; }; #ifndef __have_pthread_attr_t typedef union pthread_attr_t pthread_attr_t; -- 2.47.2