Skip to content

Commit e505ccf

Browse files
committed
fix Port.swift conditional
1 parent 5f40cce commit e505ccf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Sources/Foundation/Port.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ fileprivate let FOUNDATION_SOCK_STREAM = Int32(SOCK_STREAM)
119119
fileprivate let FOUNDATION_IPPROTO_TCP = Int32(IPPROTO_TCP)
120120
#endif
121121

122-
#if canImport(Glibc) || os(OpenBSD)
122+
#if canImport(Glibc) && os(OpenBSD)
123123
import Glibc
124124
fileprivate let FOUNDATION_SOCK_STREAM = Int32(SOCK_STREAM)
125125
fileprivate let FOUNDATION_IPPROTO_TCP = Int32(IPPROTO_TCP)

0 commit comments

Comments
 (0)