Skip to content

Commit

Permalink
Use #if canImport(Darwin) where possible (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
FranzBusch authored Jun 21, 2023
1 parent 868a89f commit fb70a0f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/NIOExtras/DebugInboundEventsHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
#if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
#if canImport(Darwin)
import Darwin
#else
import Glibc
Expand Down
2 changes: 1 addition & 1 deletion Sources/NIOExtras/DebugOutboundEventsHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
#if canImport(Darwin)
import Darwin
#else
import Glibc
Expand Down
2 changes: 1 addition & 1 deletion Sources/NIOExtras/WritePCAPHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
#if canImport(Darwin)
import Darwin
#else
import Glibc
Expand Down
2 changes: 1 addition & 1 deletion Sources/NIOSOCKS/Messages/SOCKSRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//

#if os(macOS) || os(tvOS) || os(iOS) || os(watchOS)
#if canImport(Darwin)
import Darwin
#else
import Glibc
Expand Down

0 comments on commit fb70a0f

Please sign in to comment.