summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnantha Kesari H Y <hyanantha@php.net>2005-09-01 09:51:46 +0000
committerAnantha Kesari H Y <hyanantha@php.net>2005-09-01 09:51:46 +0000
commit4f07df5320c99e50fb91b005f936088536708bbc (patch)
treefd545d34e405d6da8187466d4c59a4d9d5a626df
parentc9c573bc68efe1cff94946764cede294066d1e7a (diff)
downloadphp-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.h7
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.
*/