From: Anantha Kesari H Y Date: Thu, 1 Sep 2005 09:51:46 +0000 (+0000) Subject: As NetWare LibC has optind and optarg macros defined in unistd.h our local variables... X-Git-Tag: php-4.4.1RC1~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f07df5320c99e50fb91b005f936088536708bbc;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 --Kamesh --- diff --git a/sapi/cli/php_getopt.h b/sapi/cli/php_getopt.h index a01fc2ae85..e9c224d35a 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. */