Commit b8cc39b
authored
Recent versions of wasi-libc provide an `__errno_location` function
which returns the address of errno, similar to other platforms. Change
the errno crate to use that, instead of using the unstable
`feature(thread_local)`.
At the moment, only Rust nightly has a new enough wasi-libc to support
this, however it's not a regression because the `feature(thread_local)`
already dependend on nightly. In the future, the newer wasi-libc will
be in stable Rust too, making this work on stable.
1 parent dbd02cf commit b8cc39b
2 files changed
+3
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
| 48 | + | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | | - | |
54 | 52 | | |
55 | | - | |
| 53 | + | |
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
59 | 57 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 58 | + | |
64 | 59 | | |
65 | 60 | | |
0 commit comments