aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2008-12-08 16:11:16 +0000
committerGisle Vanem <gvanem@broadpark.no>2008-12-08 16:11:16 +0000
commit66d38261f7b0e0d0b0acfa659c81931b32d5b8ea (patch)
tree89eab4c839d47604667d0bb388fa1c30e053b677
parent553b4cfd0bc4f17a413da40a597ce99ceeecc22d (diff)
Undefine 'optarg', 'optind' and 'opterr' when using Watt-32
(to get correct linkage on Windows).
-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 3dafaf38f..e0eb28323 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);
+#if defined(WATT32)
+#undef optarg
+#undef optind
+#undef opterr
+#endif
+
extern char *optarg;
extern int optind;
extern int opterr;