Skip to content

Commit aca3f8f

Browse files
committed
Fix pthread_attr_t having 9 elems instead of 10
Regression introduced here: #13006 We are relying on them having 10 elems thru the `_a_prio` field (in wasm64) and also offsets in library_pthread.js
1 parent 5db73a6 commit aca3f8f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

system/lib/libc/musl/arch/emscripten/bits/alltypes.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ typedef long suseconds_t;
9191
#if defined(__NEED_pthread_attr_t) && !defined(__DEFINED_pthread_attr_t)
9292
typedef struct {
9393
union {
94-
int __i[9];
95-
volatile int __vi[9];
96-
unsigned __s[9];
94+
int __i[10];
95+
volatile int __vi[10];
96+
unsigned __s[10];
9797
} __u;
9898
#ifdef __EMSCRIPTEN__
9999
// For canvas transfer implementation in Emscripten, use an extra control field

tests/reference_struct_info.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,8 +1343,8 @@
13431343
"tsd": 64
13441344
},
13451345
"pthread_attr_t": {
1346-
"__size__": 40,
1347-
"_a_transferredcanvases": 36
1346+
"__size__": 44,
1347+
"_a_transferredcanvases": 40
13481348
},
13491349
"sockaddr": {
13501350
"__size__": 16,

0 commit comments

Comments
 (0)