Skip to content

Commit 6bb5ff7

Browse files
Exclude EREMOTE definition for WASI platform (#778)
WASI does not define the EREMOTE error code.
1 parent 8f34f38 commit 6bb5ff7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/FoundationEssentials/Error/ErrorCodes+POSIX.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,11 +465,13 @@ extension POSIXError {
465465
return .ESTALE
466466
}
467467

468+
#if !os(WASI)
468469
/// Too many levels of remote in path.
469470
public static var EREMOTE: POSIXErrorCode {
470471
return .EREMOTE
471472
}
472473
#endif
474+
#endif
473475

474476
#if canImport(Darwin)
475477
/// RPC struct is bad.

0 commit comments

Comments
 (0)