From bf98b635cd4fccb1d5cc781fc9b47df7771afecf Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Wed, 2 Jan 2008 05:30:52 +0000 Subject: [PATCH] Added '-d' option for Watt-32 debugging. --- ares/acountry.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ares/acountry.c b/ares/acountry.c index e2c3255747..e7029c8a34 100644 --- a/ares/acountry.c +++ b/ares/acountry.c @@ -93,9 +93,14 @@ int main(int argc, char **argv) WSAStartup(wVersionRequested, &wsaData); #endif - while ((ch = ares_getopt(argc, argv, "vh?")) != -1) + while ((ch = ares_getopt(argc, argv, "dvh?")) != -1) switch (ch) { + case 'd': +#ifdef WATT32 + dbug_init(); +#endif + break; case 'v': verbose++; break;