aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-07-01 16:56:31 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-07-01 16:56:31 +0000
commit7550f5db2954fb489e61c1767674f3f2c0e5dd34 (patch)
tree6b8a8f11f3275d12f1bf41611973972a863c56ff
parente72637a2022c33425341ab26790d19f88d18fec5 (diff)
downloadfetchmail-7550f5db2954fb489e61c1767674f3f2c0e5dd34.tar.gz
fetchmail-7550f5db2954fb489e61c1767674f3f2c0e5dd34.tar.bz2
fetchmail-7550f5db2954fb489e61c1767674f3f2c0e5dd34.zip
Eliminate a GETHOSTBYNAME dependency.
svn path=/trunk/; revision=1134
-rw-r--r--etrn.c7
-rw-r--r--fetchmail.c2
2 files changed, 1 insertions, 8 deletions
diff --git a/etrn.c b/etrn.c
index 6b6df343..d831c29f 100644
--- a/etrn.c
+++ b/etrn.c
@@ -14,9 +14,6 @@
#include "smtp.h"
#include "socket.h"
-#ifdef HAVE_GETHOSTBYNAME
-#include <netdb.h>
-
static int etrn_ok (int sock, char *argbuf)
/* parse command response */
{
@@ -95,7 +92,7 @@ static int etrn_getrange(int sock, struct query *ctl, char *id, int *countp,
if (hp == (struct hostent *) NULL)
{
/* exit with error message */
- error(5, h_errno, "gethostbyname");
+ error(5, 0, "gethostbyname");
}
/* here it is */
qname = hp->h_name;
@@ -190,6 +187,4 @@ int doETRN (struct query *ctl)
return(do_protocol(ctl, &etrn));
}
-#endif /* HAVE_GETHOSTBYNAME */
-
/* etrn.c ends here */
diff --git a/fetchmail.c b/fetchmail.c
index d4edf85c..2af4dbdc 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -750,9 +750,7 @@ static char *showproto(int proto)
case P_IMAP_K4: return("IMAP-K4"); break;
case P_APOP: return("APOP"); break;
case P_RPOP: return("RPOP"); break;
-#ifdef HAVE_GETHOSTBYNAME
case P_ETRN: return("ETRN"); break;
-#endif /* HAVE_GETHOSTBYNAME */
default: return("unknown?!?"); break;
}
}