From 315e58f2f683b950c9d6ed9b3c80359653e86dda Mon Sep 17 00:00:00 2001 From: Anantha Kesari H Y Date: Fri, 8 Oct 2004 12:22:35 +0000 Subject: [PATCH] As NetWare LibC has optind and optarg macros defined in unistd.h our local variables were getting mistakenly preprocessed so undeffing optind and optarg --- sapi/cli/php_getopt.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sapi/cli/php_getopt.h b/sapi/cli/php_getopt.h index 6ce87edf780..2ebd33ac3b4 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. */