aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_getopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'ares/ares_getopt.h')
-rw-r--r--ares/ares_getopt.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/ares/ares_getopt.h b/ares/ares_getopt.h
index e0eb28323..3c8074930 100644
--- a/ares/ares_getopt.h
+++ b/ares/ares_getopt.h
@@ -33,15 +33,15 @@
int ares_getopt(int nargc, char * const nargv[], const char *ostr);
-#if defined(WATT32)
-#undef optarg
-#undef optind
-#undef opterr
-#endif
+#define optarg ares_optarg
+#define optind ares_optind
+#define opterr ares_opterr
+#define optopt ares_optopt
+#define optreset ares_optreset
extern char *optarg;
extern int optind;
extern int opterr;
-
+extern int optopt;
#endif /* ARES_GETOPT_H */