From 088a4d923acffd5667525b50409ec44d5632deb7 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 12 Apr 2007 19:01:19 +0000 Subject: use ares_getopt for all platforms --- ahost.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ahost.c') diff --git a/ahost.c b/ahost.c index 10680d2..d6a227f 100644 --- a/ahost.c +++ b/ahost.c @@ -34,10 +34,6 @@ #include #include -#ifdef HAVE_GETOPT_H -#include -#endif - #include "ares.h" #include "ares_dns.h" #include "inet_ntop.h" @@ -73,7 +69,7 @@ int main(int argc, char **argv) WSAStartup(wVersionRequested, &wsaData); #endif - while ((c = getopt(argc,argv,"dt:h")) != -1) + while ((c = ares_getopt(argc,argv,"dt:h")) != -1) { switch (c) { -- cgit v1.2.3