X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=mxget.c;h=4529c223bea99e1abc838837d7dc88f8907df295;hb=e75c62b234a699557c023970466a8accd0b5a7b2;hp=03003362c5e975980aeac9fcfa3c57d74cdc5e60;hpb=d57b00768a8fa44d1e1c5f758440edabfa488baf;p=~andy%2Ffetchmail diff --git a/mxget.c b/mxget.c index 03003362..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,7 +126,9 @@ struct mxentry *getmxrecords(const char *name) int main(int argc, char *argv[]) { +#ifdef HAVE_RES_SEARCH struct mxentry *responses; +#endif if (argc != 2 || 0 == strcmp(argv[1], "-h")) { fprintf(stderr, "Usage: %s domain\n", argv[0]);