diff options
author | Anantha Kesari H Y <hyanantha@php.net> | 2004-10-08 12:22:35 +0000 |
---|---|---|
committer | Anantha Kesari H Y <hyanantha@php.net> | 2004-10-08 12:22:35 +0000 |
commit | 315e58f2f683b950c9d6ed9b3c80359653e86dda (patch) | |
tree | d85fcde3af1e3477859d82c1a7aaa404a2b40988 /sapi/cli/php_getopt.h | |
parent | b140c803963c244e6ba3604b0d146c9490528be1 (diff) | |
download | php-git-315e58f2f683b950c9d6ed9b3c80359653e86dda.tar.gz |
As NetWare LibC has optind and optarg macros defined in unistd.h our local variables were getting mistakenly preprocessed so undeffing optind and optarg
Diffstat (limited to 'sapi/cli/php_getopt.h')
-rw-r--r-- | sapi/cli/php_getopt.h | 7 |
1 files changed, 7 insertions, 0 deletions
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. */ |