diff --git a/Sources/NIOCore/Channel.swift b/Sources/NIOCore/Channel.swift index 73ed9362e4..4d3d664c14 100644 --- a/Sources/NIOCore/Channel.swift +++ b/Sources/NIOCore/Channel.swift @@ -458,8 +458,10 @@ extension ChannelError: CustomStringConvertible { "Bad interface address family" case let .illegalMulticastAddress(address): "Illegal multicast address \(address)" + #if !os(WASI) case let .multicastNotSupported(interface): "Multicast not supported on interface \(interface)" + #endif case .inappropriateOperationForState: "Inappropriate operation for state" case .unremovableHandler: diff --git a/Sources/NIOFoundationCompat/WaitSpinningRunLoop.swift b/Sources/NIOFoundationCompat/WaitSpinningRunLoop.swift index 9b9e16f955..bb390833f6 100644 --- a/Sources/NIOFoundationCompat/WaitSpinningRunLoop.swift +++ b/Sources/NIOFoundationCompat/WaitSpinningRunLoop.swift @@ -12,6 +12,8 @@ // //===----------------------------------------------------------------------===// +#if !os(WASI) + import Atomics import Foundation import NIOConcurrencyHelpers @@ -70,3 +72,5 @@ extension EventLoopFuture { } } } + +#endif // !os(WASI)