summaryrefslogtreecommitdiff
path: root/php_getopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'php_getopt.h')
-rw-r--r--php_getopt.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/php_getopt.h b/php_getopt.h
new file mode 100644
index 0000000000..e84e117527
--- /dev/null
+++ b/php_getopt.h
@@ -0,0 +1,9 @@
+/* Borrowed from Apache NT Port */
+#include "php.h"
+
+PHPAPI extern char *optarg;
+PHPAPI extern int optind;
+extern int opterr;
+extern int optopt;
+
+PHPAPI int getopt(int argc, char* const *argv, const char *optstr);