Skip to content

Commit 519408b

Browse files
committed
Import Linux C standard libaries in SKDResponse.swift
1 parent 55abb1d commit 519408b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Sources/SwiftSourceKitPlugin/SKDResponse.swift

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,20 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
import Csourcekitd
14-
import Darwin
1514
import SourceKitD
1615

16+
#if canImport(Darwin)
17+
import Darwin
18+
#elseif canImport(Glibc)
19+
import Glibc
20+
#elseif canImport(Musl)
21+
import Musl
22+
#elseif canImport(CRT)
23+
import CRT
24+
#elseif canImport(Bionic)
25+
import Bionic
26+
#endif
27+
1728
final class SKDResponse: CustomStringConvertible, Sendable {
1829
enum ErrorKind {
1930
case connectionInterrupted

0 commit comments

Comments
 (0)