X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=mxget.c;h=4529c223bea99e1abc838837d7dc88f8907df295;hb=2629c4511c68729d98acfd08637c1f00d3807f49;hp=21a366821d8fb687c12f182fce221c6bcf800e7a;hpb=9dc0b8bd674f71f8ee422b037dc409f2dd4f9487;p=~andy%2Ffetchmail diff --git a/mxget.c b/mxget.c index 21a36682..4529c223 100644 --- a/mxget.c +++ b/mxget.c @@ -1,14 +1,16 @@ /* * mxget.c -- fetch MX records for given DNS name * - * Copyright 1997 by Eric S. Raymond + * Copyright (C) 1996, 1997, 1998, 2000, 2002 by Eric S. Raymond + * Copyright (C) 2005, 2006, 2007 by Matthias Andree * For license terms, see the file COPYING in this directory. */ #include "config.h" +#include "fetchmail.h" #include -#ifdef HAVE_RES_SEARCH #include +#ifdef HAVE_RES_SEARCH #ifdef HAVE_NET_SOCKET_H #include #endif @@ -124,8 +126,9 @@ struct mxentry *getmxrecords(const char *name) int main(int argc, char *argv[]) { - int count, i; +#ifdef HAVE_RES_SEARCH struct mxentry *responses; +#endif if (argc != 2 || 0 == strcmp(argv[1], "-h")) { fprintf(stderr, "Usage: %s domain\n", argv[0]);