Skip to content

Commit 65f9bad

Browse files
[wasm] Add shims for aliased errno constants in WASILibc overlay
We provide shims for errno constants in WASILibc overlay since wasi-libc's errno.h defines those constants in a way that cannot be imported by ClangImporter. However, some errno constants are aliased in wasi-libc, and we didn't provided shims for them. This patch adds those missing shims.
1 parent 8b7a75c commit 65f9bad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/Platform/WASILibc.swift.gyb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ posix_error_codes = [
7373
"EADDRNOTAVAIL",
7474
"EAFNOSUPPORT",
7575
"EAGAIN",
76+
"EWOULDBLOCK",
7677
"EALREADY",
7778
"EBADF",
7879
"EBADMSG",
@@ -125,6 +126,7 @@ posix_error_codes = [
125126
"ENOTRECOVERABLE",
126127
"ENOTSOCK",
127128
"ENOTSUP",
129+
"EOPNOTSUPP",
128130
"ENOTTY",
129131
"ENXIO",
130132
"EOVERFLOW",

0 commit comments

Comments
 (0)