]> granicus.if.org Git - php/commitdiff
As NetWare LibC has optind and optarg macros defined in unistd.h our local variables...
authorAnantha Kesari H Y <hyanantha@php.net>
Thu, 1 Sep 2005 09:51:46 +0000 (09:51 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Thu, 1 Sep 2005 09:51:46 +0000 (09:51 +0000)
--Kamesh

sapi/cli/php_getopt.h

index a01fc2ae85e0208637c96d907011fda7802ce17e..e9c224d35abfb483fcab57efbdc09eedf6b086bb 100644 (file)
 
 #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.
  */