Commit d68d47f
committed
Avoid use of __EMSCRIPTEN_PTHREADS__ in __errno_location.c
Instead we can use TLS which works for both single and multithreaded
builds and also works with wasm workers.
This is also needed for emscripten-core#227351 parent 1dfe990 commit d68d47f
File tree
3 files changed
+14
-17
lines changed- system/lib/libc/musl/src/errno
- test
- code_size
3 files changed
+14
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
15 | 9 | | |
16 | 10 | | |
17 | 11 | | |
| 12 | + | |
18 | 13 | | |
19 | | - | |
| 14 | + | |
| 15 | + | |
20 | 16 | | |
| 17 | + | |
21 | 18 | | |
22 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
| 331 | + | |
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| |||
0 commit comments