Commit 12a7ddf
committed
Do not include <sys/resource.h> on WASI
Including `sys/resource.h` from wasi-libc requires a feature macro to be
defined (`-D_WASI_EMULATED_PROCESS_CLOCKS`) and emits compilation errors
otherwise. However, the header is not used in WASI paths, so it is safe
to exclude it from the list of includes.
See `sys/times.h` that is transitively included by `sys/resource.h`
https://github.com/WebAssembly/wasi-libc/blob/wasi-sdk-22/libc-top-half/musl/include/sys/times.h1 parent 090e9c8 commit 12a7ddf
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments