diff --git a/Sources/FoundationNetworking/URLSession/BodySource.swift b/Sources/FoundationNetworking/URLSession/BodySource.swift index 4e82976391..94e579a558 100644 --- a/Sources/FoundationNetworking/URLSession/BodySource.swift +++ b/Sources/FoundationNetworking/URLSession/BodySource.swift @@ -23,7 +23,13 @@ import Foundation #endif @_implementationOnly import CoreFoundation + +#if os(Linux) +import CFURLSessionInterface +#else @_implementationOnly import CFURLSessionInterface +#endif + import Dispatch diff --git a/Sources/FoundationXML/XMLParser.swift b/Sources/FoundationXML/XMLParser.swift index befc828212..f302428cdb 100644 --- a/Sources/FoundationXML/XMLParser.swift +++ b/Sources/FoundationXML/XMLParser.swift @@ -10,6 +10,9 @@ #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) import SwiftFoundation import CFXMLInterface +#elseif os(Linux) +import Foundation +import CFXMLInterface #else import Foundation @_implementationOnly import CFXMLInterface