aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ares/ares_getopt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ares/ares_getopt.h b/ares/ares_getopt.h
index 3c8074930..63acb3b42 100644
--- a/ares/ares_getopt.h
+++ b/ares/ares_getopt.h
@@ -33,6 +33,12 @@
int ares_getopt(int nargc, char * const nargv[], const char *ostr);
+#undef optarg
+#undef optind
+#undef opterr
+#undef optopt
+#undef optreset
+
#define optarg ares_optarg
#define optind ares_optind
#define opterr ares_opterr