diff --git a/Sources/NIOHTTP1/HTTPDecoder.swift b/Sources/NIOHTTP1/HTTPDecoder.swift index 73ac7ccab..4e5e2ab6f 100644 --- a/Sources/NIOHTTP1/HTTPDecoder.swift +++ b/Sources/NIOHTTP1/HTTPDecoder.swift @@ -13,7 +13,11 @@ //===----------------------------------------------------------------------===// import NIO +#if compiler(>=5.1) +@_implementationOnly import CNIOHTTPParser +#else import CNIOHTTPParser +#endif private extension UnsafeMutablePointer where Pointee == http_parser { /// Returns the `KeepAliveState` for the current message that is parsed.