aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mxget.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mxget.c b/mxget.c
index 9ccdb1cb..4529c223 100644
--- a/mxget.c
+++ b/mxget.c
@@ -126,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]);