From 2522fa68aa4e0f8eaf8c3ffdfa641e2d23ef5ac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Wei=C3=9F?= Date: Thu, 8 Jun 2017 16:10:22 +0100 Subject: [PATCH] Swift 3.2 (Swift 4 in Swift 3 mode) needs TCO workaround --- Sources/NIO/Channel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/NIO/Channel.swift b/Sources/NIO/Channel.swift index e8fddf8db..4f5d11d32 100644 --- a/Sources/NIO/Channel.swift +++ b/Sources/NIO/Channel.swift @@ -44,7 +44,7 @@ final class PendingWrite { } } -#if swift(>=4.0) +#if swift(>=3.2) /* workaround for https://bugs.swift.org/browse/SR-5106 */ func doPendingWriteVectorOperation(pending: PendingWrite?, count: Int, iovecs: UnsafeMutableBufferPointer, _ fn: (UnsafeBufferPointer) -> Int) -> Int { return withoutActuallyEscaping(fn) { fn in