blob: e7d5108de553fa2315a75437bb13c1f1123248ca (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$FreeBSD$
--- dns.c.orig Sun May 18 10:21:33 2003
+++ dns.c Mon May 30 16:20:14 2005
@@ -562,8 +562,13 @@
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;
|