summaryrefslogtreecommitdiff
path: root/missing/getopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'missing/getopt.h')
-rw-r--r--missing/getopt.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/missing/getopt.h b/missing/getopt.h
new file mode 100644
index 000000000000..d176345ae20b
--- /dev/null
+++ b/missing/getopt.h
@@ -0,0 +1,7 @@
+/*
+ * Header for the getopt() we supply if the platform doesn't supply it.
+ */
+extern char *optarg; /* getopt(3) external variables */
+extern int optind, opterr, optopt;
+
+extern int getopt(int nargc, char * const *nargv, const char *ostr);