diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2006-01-09 16:04:28 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2006-01-09 16:04:28 +0000 |
commit | 85b886d10b341d4e1771dcdeaeb8722e5ffaada0 (patch) | |
tree | 1cb1bf616200b4245c9c6126223268e337d63faa | |
parent | 4976dcef4fe65e4796d46220bd45df0bf00f583c (diff) | |
download | fetchmail-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.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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; } |