summaryrefslogtreecommitdiff
path: root/php_getopt.h
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-05-29 13:53:59 +0000
committerSascha Schumann <sas@php.net>1999-05-29 13:53:59 +0000
commit52463124be82988bf0ba77a978deacdd84d48be7 (patch)
tree16454a5b78dfbdb1f24e6c3964d3d6c67e9ad15a /php_getopt.h
parentb219d491b9a1595d40fe2741309a845f153dbd9f (diff)
downloadphp-git-52463124be82988bf0ba77a978deacdd84d48be7.tar.gz
getopt.h conflicted with system include file
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);