cvs: php-src(PHP_5_0) /sapi/cli php_getopt.h
| From: | Anantha Kesari H Y | Date: | Fri, 11 Mar 2005 11:04:04 +0000 |
| Subject: | cvs: php-src(PHP_5_0) /sapi/cli php_getopt.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-30874@lists.php.net to get a copy of this message | ||
hyanantha Fri Mar 11 06:04:04 2005 EDT
Modified files: (Branch: PHP_5_0)
/php-src/sapi/cli php_getopt.h
Log:
As NetWare LibC has optind and optarg macros defined in unistd.h our local variables were getting
mistakenly preprocessed so undeffing optind and optarg
http://cvs.php.net/diff.php/php-src/sapi/cli/php_getopt.h?r1=1.5&r2=1.5.2.1&ty=u
Index: php-src/sapi/cli/php_getopt.h
diff -u php-src/sapi/cli/php_getopt.h:1.5 php-src/sapi/cli/php_getopt.h:1.5.2.1
--- php-src/sapi/cli/php_getopt.h:1.5 Thu Jan 8 12:33:23 2004
+++ php-src/sapi/cli/php_getopt.h Fri Mar 11 06:04:03 2005
@@ -16,10 +16,18 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_getopt.h,v 1.5 2004/01/08 17:33:23 sniper Exp $ */
+/* $Id: php_getopt.h,v 1.5.2.1 2005/03/11 11:04:03 hyanantha Exp $ */
#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.
*/