From: Anantha Kesari H Y Date: Fri, 11 Mar 2005 11:04:03 +0000 (+0000) Subject: As NetWare LibC has optind and optarg macros defined in unistd.h our local variables... X-Git-Tag: php-5.0.4RC1~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b56adc718b4a7c0c28a211010c7386667ee6f586;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..7e8a0d5114 100644 --- a/sapi/cli/php_getopt.h +++ b/sapi/cli/php_getopt.h @@ -20,6 +20,14 @@ #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. */