Skip to content

Commit d8039b8

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 and also offsets in library_pthread.js
1 parent 5db73a6 commit d8039b8

File tree

1 file changed

+3
-3
lines changed
  • system/lib/libc/musl/arch/emscripten/bits

1 file changed

+3
-3
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

0 commit comments

Comments
 (0)