1
0
mirror of synced 2026-10-24 00:28:57 +03:00

Fix #2318 on macOS

This commit is contained in:
yhirose
2026-01-02 22:28:15 -05:00
parent 23a1d79a66
commit 8d03ef1615

View File

@@ -4547,6 +4547,7 @@ inline int getaddrinfo_with_timeout(const char *node, const char *service,
return ret;
#elif TARGET_OS_MAC
if (!node) { return EAI_NONAME; }
// macOS implementation using CFHost API for asynchronous DNS resolution
CFStringRef hostname_ref = CFStringCreateWithCString(
kCFAllocatorDefault, node, kCFStringEncodingUTF8);