From d4bc2387b5c2d831fa091185b974620cf46ab0f0 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Wed, 25 Oct 2006 14:13:35 +0000 Subject: [PATCH] Added '-d' option for Watt32 targets. Added cvs id. --- adig.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/adig.c b/adig.c index a0f622ab..494386ff 100644 --- a/adig.c +++ b/adig.c @@ -1,4 +1,6 @@ /* Copyright 1998 by the Massachusetts Institute of Technology. + * + * $Id$ * * Permission to use, copy, modify, and distribute this * software and its documentation for any purpose and without @@ -162,10 +164,16 @@ int main(int argc, char **argv) options.flags = ARES_FLAG_NOCHECKRESP; options.servers = NULL; options.nservers = 0; - while ((c = getopt(argc, argv, "f:s:c:t:T:U:")) != -1) + while ((c = getopt(argc, argv, "df:s:c:t:T:U:")) != -1) { switch (c) { + case 'd': +#ifdef WATT32 + dbug_init(); +#endif + break; + case 'f': /* Add a flag. */ for (i = 0; i < nflags; i++)