summaryrefslogtreecommitdiff
path: root/ares_getopt.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-11-22 03:51:07 +0000
committerYang Tse <yangsita@gmail.com>2009-11-22 03:51:07 +0000
commit912857c6f32acfe7e88a95acf7bc00b389619f40 (patch)
tree853e9fc39bc16deb825f1df295af3a193adb11c5 /ares_getopt.h
parentc1f141596eddc404e0cd360bcc98744cd4a2455c (diff)
downloadc-ares-912857c6f32acfe7e88a95acf7bc00b389619f40.tar.gz
c-ares-912857c6f32acfe7e88a95acf7bc00b389619f40.tar.bz2
c-ares-912857c6f32acfe7e88a95acf7bc00b389619f40.zip
Fix macro redefinition.
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 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