aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-01-09 16:04:28 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-01-09 16:04:28 +0000
commit85b886d10b341d4e1771dcdeaeb8722e5ffaada0 (patch)
tree1cb1bf616200b4245c9c6126223268e337d63faa
parent4976dcef4fe65e4796d46220bd45df0bf00f583c (diff)
downloadfetchmail-85b886d10b341d4e1771dcdeaeb8722e5ffaada0.tar.gz
fetchmail-85b886d10b341d4e1771dcdeaeb8722e5ffaada0.tar.bz2
fetchmail-85b886d10b341d4e1771dcdeaeb8722e5ffaada0.zip
Unbreak 'make check' for systems that don't have HAVE_RES_SEARCH.
svn path=/branches/BRANCH_6-3/; revision=4617
-rw-r--r--mxget.c12
1 files changed, 8 insertions, 4 deletions
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;
}