]> 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>
Fri, 11 Mar 2005 11:04:03 +0000 (11:04 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Fri, 11 Mar 2005 11:04:03 +0000 (11:04 +0000)
sapi/cli/php_getopt.h

index 6ce87edf780e5e47462cb499a3c2c1efe3adefe0..7e8a0d511403bb1433b4d2638766637076f8b22f 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.
  */