summaryrefslogtreecommitdiff
path: root/ahost.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-04-12 19:01:19 +0000
committerYang Tse <yangsita@gmail.com>2007-04-12 19:01:19 +0000
commit088a4d923acffd5667525b50409ec44d5632deb7 (patch)
tree5b1cf289462f4b13f4fff60924b2fd122f636432 /ahost.c
parentddbe06ca13521e8492bb731e2a79de47f88e996c (diff)
downloadc-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.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ahost.c b/ahost.c
index 10680d2..d6a227f 100644
--- a/ahost.c
+++ b/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)
{