summaryrefslogtreecommitdiffstats
path: root/lib/libpcap/libpcap/missing/getopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpcap/libpcap/missing/getopt.h')
-rw-r--r--lib/libpcap/libpcap/missing/getopt.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libpcap/libpcap/missing/getopt.h b/lib/libpcap/libpcap/missing/getopt.h
new file mode 100644
index 0000000..fc83c94
--- /dev/null
+++ b/lib/libpcap/libpcap/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, optreset, optopt;
+
+extern int getopt(int nargc, char * const *nargv, const char *ostr);