Skip to content

Commit edf19db

Browse files
committed
Import Darwin in files that use free
rdar://131965190
1 parent e4cb1bd commit edf19db

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

Sources/SourceKitD/SKDRequestArray.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212

1313
import Csourcekitd
1414

15-
#if canImport(Glibc)
15+
#if canImport(Darwin)
16+
import Darwin
17+
#elseif canImport(Glibc)
1618
import Glibc
1719
#elseif canImport(Musl)
1820
import Musl

Sources/SourceKitD/SKDRequestDictionary.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
import Csourcekitd
1414
import LSPLogging
1515

16-
#if canImport(Glibc)
16+
#if canImport(Darwin)
17+
import Darwin
18+
#elseif canImport(Glibc)
1719
import Glibc
1820
#elseif canImport(Musl)
1921
import Musl

Sources/SourceKitD/SKDResponse.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
import Csourcekitd
1414
import LSPLogging
1515

16-
#if canImport(Glibc)
16+
#if canImport(Darwin)
17+
import Darwin
18+
#elseif canImport(Glibc)
1719
import Glibc
1820
#elseif canImport(Musl)
1921
import Musl

Sources/SourceKitD/SKDResponseArray.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212

1313
import Csourcekitd
1414

15-
#if canImport(Glibc)
15+
#if canImport(Darwin)
16+
import Darwin
17+
#elseif canImport(Glibc)
1618
import Glibc
1719
#elseif canImport(Musl)
1820
import Musl

Sources/SourceKitD/SKDResponseDictionary.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212

1313
import Csourcekitd
1414

15-
#if canImport(Glibc)
15+
#if canImport(Darwin)
16+
import Darwin
17+
#elseif canImport(Glibc)
1618
import Glibc
1719
#elseif canImport(Musl)
1820
import Musl

0 commit comments

Comments
 (0)