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 | 088a4d923acffd5667525b50409ec44d5632deb7 (patch) | |
tree | 5b1cf289462f4b13f4fff60924b2fd122f636432 /ahost.c | |
parent | ddbe06ca13521e8492bb731e2a79de47f88e996c (diff) | |
download | c-ares-088a4d923acffd5667525b50409ec44d5632deb7.tar.gz c-ares-088a4d923acffd5667525b50409ec44d5632deb7.tar.bz2 c-ares-088a4d923acffd5667525b50409ec44d5632deb7.zip |
use ares_getopt for all platforms
Diffstat (limited to 'ahost.c')
-rw-r--r-- | ahost.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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) { |