From 078fc4186bfc8e403dc741cb68bcf5c3035c054d Mon Sep 17 00:00:00 2001
From: Gisle Vanem <gvanem@broadpark.no>
Date: Tue, 6 Feb 2007 19:12:38 +0000
Subject: [PATCH] Added debug option ('-d') for Watt-32 programs.

---
 ares/ahost.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/ares/ahost.c b/ares/ahost.c
index 8f6b671afc..35bd7b0f4b 100644
--- a/ares/ahost.c
+++ b/ares/ahost.c
@@ -78,10 +78,16 @@ int main(int argc, char **argv)
   WSAStartup(wVersionRequested, &wsaData);
 #endif
 
-  while ((c = getopt(argc,argv,"t:h")) != -1)
+  while ((c = getopt(argc,argv,"dt:h")) != -1)
     {
       switch (c)
         {
+        case 'd':
+#ifdef WATT32
+          dbug_init();
+#endif
+          break;
+
         case 't':
           if (!strcasecmp(optarg,"a"))
             addr_family = AF_INET;
-- 
GitLab