summaryrefslogtreecommitdiff
path: root/sapi/cli/php_getopt.h
diff options
context:
space:
mode:
authorAnantha Kesari H Y <hyanantha@php.net>2004-10-08 12:22:35 +0000
committerAnantha Kesari H Y <hyanantha@php.net>2004-10-08 12:22:35 +0000
commit315e58f2f683b950c9d6ed9b3c80359653e86dda (patch)
treed85fcde3af1e3477859d82c1a7aaa404a2b40988 /sapi/cli/php_getopt.h
parentb140c803963c244e6ba3604b0d146c9490528be1 (diff)
downloadphp-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.h7
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.
*/