From: Matthias Andree Date: Mon, 9 Jan 2006 16:04:28 +0000 (-0000) Subject: Unbreak 'make check' for systems that don't have HAVE_RES_SEARCH. X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=85b886d10b341d4e1771dcdeaeb8722e5ffaada0;p=~andy%2Ffetchmail Unbreak 'make check' for systems that don't have HAVE_RES_SEARCH. svn path=/branches/BRANCH_6-3/; revision=4617 --- diff --git a/mxget.c b/mxget.c index 3bb54119..30f2a287 100644 --- a/mxget.c +++ b/mxget.c @@ -130,14 +130,18 @@ int main(int argc, char *argv[]) exit(1); } +#ifdef HAVE_RES_SEARCH responses = getmxrecords(argv[1]); - if (responses == (struct mxentry *)NULL) + if (responses == (struct mxentry *)NULL) { puts("No MX records found"); - else + } else { do { printf("%s %d\n", responses->name, responses->pref); - } while - ((++responses)->name); + } while ((++responses)->name); + } +#else + puts("This program was compiled without HAS_RES_SEARCH and does nothing."); +#endif return 0; }