aboutsummaryrefslogtreecommitdiff
path: root/ares/adig.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
commit2364066be0aa442feded4655735b792d9bcf3753 (patch)
tree14a5beadf3e88711e958b665ba1eae3b6f8f6169 /ares/adig.c
parentb36376e12d0bd904e02122ebffc6c21530ee40e8 (diff)
use ares_getopt for all platforms
Diffstat (limited to 'ares/adig.c')
-rw-r--r--ares/adig.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ares/adig.c b/ares/adig.c
index f42249606..446d55bc5 100644
--- a/ares/adig.c
+++ b/ares/adig.c
@@ -32,9 +32,6 @@
#endif
#include <netdb.h>
#endif
-#ifdef HAVE_GETOPT_H
-#include <getopt.h>
-#endif
#include <stdio.h>
#include <stdlib.h>
@@ -163,7 +160,7 @@ int main(int argc, char **argv)
options.flags = ARES_FLAG_NOCHECKRESP;
options.servers = NULL;
options.nservers = 0;
- while ((c = getopt(argc, argv, "df:s:c:t:T:U:")) != -1)
+ while ((c = ares_getopt(argc, argv, "df:s:c:t:T:U:")) != -1)
{
switch (c)
{