Skip to content

Commit c756835

Browse files
committed
fix: Fix WASI compiler issue in NIOCore
1 parent 89be322 commit c756835

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/NIOCore/Channel.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,10 @@ extension ChannelError: CustomStringConvertible {
458458
"Bad interface address family"
459459
case let .illegalMulticastAddress(address):
460460
"Illegal multicast address \(address)"
461+
#if !os(WASI)
461462
case let .multicastNotSupported(interface):
462463
"Multicast not supported on interface \(interface)"
464+
#endif
463465
case .inappropriateOperationForState:
464466
"Inappropriate operation for state"
465467
case .unremovableHandler:

0 commit comments

Comments
 (0)