From 613020bcbbb6d11b324294a8256b72d579eb9496 Mon Sep 17 00:00:00 2001 From: Tony Arnold Date: Tue, 17 Sep 2019 17:08:29 +1000 Subject: [PATCH] =?UTF-8?q?Import=20FoundationNetworking=20when=20it?= =?UTF-8?q?=E2=80=99s=20available?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/Vapor/Client/FoundationClient.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sources/Vapor/Client/FoundationClient.swift b/Sources/Vapor/Client/FoundationClient.swift index b027768015..40f60d3b7a 100644 --- a/Sources/Vapor/Client/FoundationClient.swift +++ b/Sources/Vapor/Client/FoundationClient.swift @@ -1,3 +1,9 @@ +#if swift(>=4.1) + #if canImport(FoundationNetworking) + import FoundationNetworking + #endif +#endif + /// `Client` wrapper around `Foundation.URLSession`. public final class FoundationClient: Client, ServiceType { /// See `ServiceType`.