summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ares_getopt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ares_getopt.h b/ares_getopt.h
index 3c80749..63acb3b 100644
--- a/ares_getopt.h
+++ b/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