diff options
author | Yang Tse <yangsita@gmail.com> | 2007-04-12 19:01:19 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-04-12 19:01:19 +0000 |
commit | 2364066be0aa442feded4655735b792d9bcf3753 (patch) | |
tree | 14a5beadf3e88711e958b665ba1eae3b6f8f6169 /ares/ahost.c | |
parent | b36376e12d0bd904e02122ebffc6c21530ee40e8 (diff) | |
download | curl-2364066be0aa442feded4655735b792d9bcf3753.tar.gz |
use ares_getopt for all platforms
Diffstat (limited to 'ares/ahost.c')
-rw-r--r-- | ares/ahost.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ares/ahost.c b/ares/ahost.c index 10680d216..d6a227f67 100644 --- a/ares/ahost.c +++ b/ares/ahost.c @@ -34,10 +34,6 @@ #include <stdlib.h> #include <string.h> -#ifdef HAVE_GETOPT_H -#include <getopt.h> -#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) { |