From 2b7b4d364f45bd335ed062aba4acbb0546ceb337 Mon Sep 17 00:00:00 2001 From: ume Date: Thu, 23 Oct 2003 13:50:01 +0000 Subject: preparation for RFC3493. EAI_NODATA was deprecated. --- lib/libfetch/common.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libfetch') diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c index ea1c81d..4a169ae 100644 --- a/lib/libfetch/common.c +++ b/lib/libfetch/common.c @@ -54,7 +54,9 @@ __FBSDID("$FreeBSD$"); * Error messages for resolver errors */ static struct fetcherr _netdb_errlist[] = { +#ifdef EAI_NODATA { EAI_NODATA, FETCH_RESOLV, "Host not found" }, +#endif { EAI_AGAIN, FETCH_TEMP, "Transient resolver failure" }, { EAI_FAIL, FETCH_RESOLV, "Non-recoverable resolver failure" }, { EAI_NONAME, FETCH_RESOLV, "No address record" }, -- cgit v1.1