mirror of
https://git.freebsd.org/ports.git
synced 2025-06-14 17:20:29 -04:00
16 lines
401 B
C
16 lines
401 B
C
--- dns.c.orig 2003-05-18 01:21:33 UTC
|
|
+++ dns.c
|
|
@@ -562,8 +562,13 @@ dns_resolve(char *ip, struct addrinfo **
|
|
if (res != 0) {
|
|
fprintf(stderr, "%s: getaddrinfo(%s): %s\n", __func__,
|
|
ip, gai_strerror(res));
|
|
+#ifdef EAI_NODATA
|
|
if (res != EAI_NODATA)
|
|
return (-1);
|
|
+#else
|
|
+ if (res != EAI_NONAME)
|
|
+ return (-1);
|
|
+#endif
|
|
|
|
/* Negative caching */
|
|
ai = NULL;
|