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:
Alastair Houghton
2024-09-30 10:17:01 -07:00
committed by GitHub
parent 38608db985
commit 64abc77edf
@@ -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