From: Anantha Kesari H Y Date: Fri, 8 Oct 2004 12:22:35 +0000 (+0000) Subject: As NetWare LibC has optind and optarg macros defined in unistd.h our local variables... X-Git-Tag: PRE_NEW_VM_GEN_PATCH~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=315e58f2f683b950c9d6ed9b3c80359653e86dda;p=php As NetWare LibC has optind and optarg macros defined in unistd.h our local variables were getting mistakenly preprocessed so undeffing optind and optarg --- diff --git a/sapi/cli/php_getopt.h b/sapi/cli/php_getopt.h index 6ce87edf78..2ebd33ac3b 100644 --- a/sapi/cli/php_getopt.h +++ b/sapi/cli/php_getopt.h @@ -20,6 +20,13 @@ #include "php.h" +#ifdef NETWARE +/* +As NetWare LibC has optind and optarg macros defined in unistd.h our local variables were getting mistakenly preprocessed so undeffing optind and optarg +*/ +#undef optarg +#undef optind +#endif /* Define structure for one recognized option (both single char and long name). * If short_open is '-' this is the last option. */