]> 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, 8 Oct 2004 12:22:35 +0000 (12:22 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Fri, 8 Oct 2004 12:22:35 +0000 (12:22 +0000)
sapi/cli/php_getopt.h

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