summaryrefslogtreecommitdiff
path: root/ahost.c
diff options
context:
space:
mode:
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)
{