Added
Link Here
|
0 |
- |
1 |
--- src/sock_addr.c.orig 2023-05-15 15:41:44 UTC |
|
|
2 |
+++ src/sock_addr.c |
3 |
@@ -496,7 +496,7 @@ int sock_addr_from_str_hints(sock_addr * const restric |
4 |
if (0 != (rc = getaddrinfo(str, NULL, &hints, &res))) { |
5 |
hints.ai_family = AF_INET; |
6 |
if ( |
7 |
- #ifdef EAI_ADDRFAMILY |
8 |
+ #if defined(__GLIBC__) && defined(EAI_ADDRFAMILY) |
9 |
EAI_ADDRFAMILY == rc && |
10 |
#endif |
11 |
0 == getaddrinfo(str, NULL, &hints, &res)) { |