From 82d439ab4b351b4193521428fa449f392c8ec0ac Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 18 Jan 1998 17:59:03 +0000 Subject: Better behavior in absence of bind library. svn path=/trunk/; revision=1595 --- driver.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'driver.c') diff --git a/driver.c b/driver.c index c6a4ab99..d89d278d 100644 --- a/driver.c +++ b/driver.c @@ -1539,6 +1539,7 @@ const struct method *proto; /* protocol method table */ { error_build("fetchmail: %s connection to %s failed: ", protocol->name, ctl->server.pollname); +#ifdef HAVE_RES_SEARCH if (h_errno == HOST_NOT_FOUND) error_complete(0, 0, "host is unknown"); else if (h_errno == NO_ADDRESS) @@ -1550,6 +1551,7 @@ const struct method *proto; /* protocol method table */ else if (h_errno) error_complete(0, 0, "unknown DNS error %d", h_errno); else +#endif /* HAVE_RES_SEARCH */ error_complete(0, errno, "local error"); } ok = PS_SOCKET; -- cgit v1.2.3