Skip to content

Commit 64abc77

Browse files
authored
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.
1 parent 38608db commit 64abc77

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/AsyncHTTPClient/HTTPClient+HTTPCookie.swift

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,16 @@ import NIOHTTP1
1717
import xlocale
1818
#elseif canImport(locale_h)
1919
import locale_h
20-
#elseif canImport(Darwin)
20+
#endif
21+
22+
#if canImport(Darwin)
2123
import Darwin
2224
#elseif canImport(Musl)
2325
import Musl
2426
#elseif canImport(Glibc)
2527
import Glibc
2628
#endif
29+
2730
import CAsyncHTTPClient
2831
import NIOCore
2932

0 commit comments

Comments
 (0)