summaryrefslogtreecommitdiff
path: root/ares_getopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'ares_getopt.h')
-rw-r--r--ares_getopt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ares_getopt.h b/ares_getopt.h
index 3dafaf3..e0eb283 100644
--- a/ares_getopt.h
+++ b/ares_getopt.h
@@ -33,6 +33,12 @@
int ares_getopt(int nargc, char * const nargv[], const char *ostr);
+#if defined(WATT32)
+#undef optarg
+#undef optind
+#undef opterr
+#endif
+
extern char *optarg;
extern int optind;
extern int opterr;