aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-01-18 17:59:03 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-01-18 17:59:03 +0000
commit82d439ab4b351b4193521428fa449f392c8ec0ac (patch)
tree51843f4a9e003cc1c5804685ed9e5ff8213def94 /driver.c
parentbc1dbec642a692d2b84d32cee53837dc5f01b726 (diff)
downloadfetchmail-82d439ab4b351b4193521428fa449f392c8ec0ac.tar.gz
fetchmail-82d439ab4b351b4193521428fa449f392c8ec0ac.tar.bz2
fetchmail-82d439ab4b351b4193521428fa449f392c8ec0ac.zip
Better behavior in absence of bind library.
svn path=/trunk/; revision=1595
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c2
1 files changed, 2 insertions, 0 deletions
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;