diff --git a/system/lib/libc/musl/arch/emscripten/bits/alltypes.h b/system/lib/libc/musl/arch/emscripten/bits/alltypes.h index 2d727fcafc08e..b8a03756d73af 100644 --- a/system/lib/libc/musl/arch/emscripten/bits/alltypes.h +++ b/system/lib/libc/musl/arch/emscripten/bits/alltypes.h @@ -91,9 +91,9 @@ typedef long suseconds_t; #if defined(__NEED_pthread_attr_t) && !defined(__DEFINED_pthread_attr_t) typedef struct { union { - int __i[9]; - volatile int __vi[9]; - unsigned __s[9]; + int __i[10]; + volatile int __vi[10]; + unsigned __s[10]; } __u; #ifdef __EMSCRIPTEN__ // For canvas transfer implementation in Emscripten, use an extra control field diff --git a/tests/reference_struct_info.json b/tests/reference_struct_info.json index 1d2a7b042db9b..0786f571909fb 100644 --- a/tests/reference_struct_info.json +++ b/tests/reference_struct_info.json @@ -1343,8 +1343,8 @@ "tsd": 64 }, "pthread_attr_t": { - "__size__": 40, - "_a_transferredcanvases": 36 + "__size__": 44, + "_a_transferredcanvases": 40 }, "sockaddr": { "__size__": 16,