diff options
author | Anantha Kesari H Y <hyanantha@php.net> | 2005-09-01 09:51:46 +0000 |
---|---|---|
committer | Anantha Kesari H Y <hyanantha@php.net> | 2005-09-01 09:51:46 +0000 |
commit | 4f07df5320c99e50fb91b005f936088536708bbc (patch) | |
tree | fd545d34e405d6da8187466d4c59a4d9d5a626df | |
parent | c9c573bc68efe1cff94946764cede294066d1e7a (diff) | |
download | php-git-4f07df5320c99e50fb91b005f936088536708bbc.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
--Kamesh
-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 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. */ |