summaryrefslogtreecommitdiff
path: root/sapi/cgi/php_getopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/cgi/php_getopt.h')
-rw-r--r--sapi/cgi/php_getopt.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sapi/cgi/php_getopt.h b/sapi/cgi/php_getopt.h
index 4bfa433977..fc14c96743 100644
--- a/sapi/cgi/php_getopt.h
+++ b/sapi/cgi/php_getopt.h
@@ -16,8 +16,17 @@
+----------------------------------------------------------------------+
*/
+/* $Id$ */
+
#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.
*/