aboutsummaryrefslogtreecommitdiffstats
path: root/etrn.c
diff options
context:
space:
mode:
Diffstat (limited to 'etrn.c')
-rw-r--r--etrn.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/etrn.c b/etrn.c
index 5ccc0f86..6b6df343 100644
--- a/etrn.c
+++ b/etrn.c
@@ -14,6 +14,9 @@
#include "smtp.h"
#include "socket.h"
+#ifdef HAVE_GETHOSTBYNAME
+#include <netdb.h>
+
static int etrn_ok (int sock, char *argbuf)
/* parse command response */
{
@@ -187,4 +190,6 @@ int doETRN (struct query *ctl)
return(do_protocol(ctl, &etrn));
}
+#endif /* HAVE_GETHOSTBYNAME */
+
/* etrn.c ends here */