From 415b48e2161f39affbb72867251ef60b71fdb1c7 Mon Sep 17 00:00:00 2001 From: Johannes Weiss Date: Wed, 14 Aug 2019 18:49:13 +0100 Subject: [PATCH] more compatibility with other platforms (#1110) Motivation: Everything should compile on as many platforms as possible. Modifications: Guard FileManager.temporaryDirectory behind `#available(macOS 10.12, iOS 10, tvOS 10, watchOS 3, macCatalyst 13, *)` instead of just macOS 10.12. Result: Tests should build on iOS and friends too. --- Tests/NIOTests/TestUtils.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/NIOTests/TestUtils.swift b/Tests/NIOTests/TestUtils.swift index 5a45ca8c4..639d936ed 100644 --- a/Tests/NIOTests/TestUtils.swift +++ b/Tests/NIOTests/TestUtils.swift @@ -106,7 +106,7 @@ var temporaryDirectory: String { #elseif os(Linux) return "/tmp" #else - if #available(OSX 10.12, *) { + if #available(macOS 10.12, iOS 10, tvOS 10, watchOS 3, *) { return FileManager.default.temporaryDirectory.path } else { return "/tmp"