From c7568354576d38fc15df57eae1956c056d735398 Mon Sep 17 00:00:00 2001 From: Scott Marchant Date: Wed, 22 Oct 2025 13:19:06 -0600 Subject: [PATCH 1/2] fix: Fix WASI compiler issue in NIOCore --- Sources/NIOCore/Channel.swift | 2 ++ 1 file changed, 2 insertions(+) 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: From c99ee3377f457c1925bff821b4bef15cc9661b28 Mon Sep 17 00:00:00 2001 From: Scott Marchant Date: Wed, 22 Oct 2025 13:24:00 -0600 Subject: [PATCH 2/2] feat: Enable NIOFoundationCompat module to compile. --- Sources/NIOFoundationCompat/WaitSpinningRunLoop.swift | 4 ++++ 1 file changed, 4 insertions(+) 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)