mirror of
https://github.com/swift-server/async-http-client.git
synced 2026-06-02 07:37:34 +00:00
Don't just import locale_h. (#775)
On modularised platforms, #771 broke things because it changed from importing `Musl` or `Glibc` to importing just `locale_h`. The latter understandably doesn't define `errno` or `EOVERFLOW`, so we get a build failure. Fixes #773.
This commit is contained in:
@@ -17,13 +17,16 @@ import NIOHTTP1
|
||||
import xlocale
|
||||
#elseif canImport(locale_h)
|
||||
import locale_h
|
||||
#elseif canImport(Darwin)
|
||||
#endif
|
||||
|
||||
#if canImport(Darwin)
|
||||
import Darwin
|
||||
#elseif canImport(Musl)
|
||||
import Musl
|
||||
#elseif canImport(Glibc)
|
||||
import Glibc
|
||||
#endif
|
||||
|
||||
import CAsyncHTTPClient
|
||||
import NIOCore
|
||||
|
||||
|
||||
Reference in New Issue
Block a user