From 66d38261f7b0e0d0b0acfa659c81931b32d5b8ea Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Mon, 8 Dec 2008 16:11:16 +0000 Subject: [PATCH] Undefine 'optarg', 'optind' and 'opterr' when using Watt-32 (to get correct linkage on Windows). --- ares/ares_getopt.h | 6 ++++++ 1 file changed, 6 insertions(+) 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;