From 356a54fd9fd8b5ec7e0b034223d083865ac63d4f Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Fri, 26 Jul 2024 06:21:12 +0000 Subject: [PATCH] Exclude EREMOTE definition for WASI platform WASI does not define the EREMOTE error code. --- Sources/FoundationEssentials/Error/ErrorCodes+POSIX.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/FoundationEssentials/Error/ErrorCodes+POSIX.swift b/Sources/FoundationEssentials/Error/ErrorCodes+POSIX.swift index a7e01952c..d6977ba47 100644 --- a/Sources/FoundationEssentials/Error/ErrorCodes+POSIX.swift +++ b/Sources/FoundationEssentials/Error/ErrorCodes+POSIX.swift @@ -465,11 +465,13 @@ extension POSIXError { return .ESTALE } + #if !os(WASI) /// Too many levels of remote in path. public static var EREMOTE: POSIXErrorCode { return .EREMOTE } #endif + #endif #if canImport(Darwin) /// RPC struct is bad.