summaryrefslogtreecommitdiff
path: root/ucspi-tcp-0.88/sgetopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'ucspi-tcp-0.88/sgetopt.h')
-rw-r--r--ucspi-tcp-0.88/sgetopt.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/ucspi-tcp-0.88/sgetopt.h b/ucspi-tcp-0.88/sgetopt.h
new file mode 100644
index 0000000..739203c
--- /dev/null
+++ b/ucspi-tcp-0.88/sgetopt.h
@@ -0,0 +1,21 @@
+#ifndef SGETOPT_H
+#define SGETOPT_H
+
+#ifndef SGETOPTNOSHORT
+#define getopt sgetoptmine
+#define optarg subgetoptarg
+#define optind subgetoptind
+#define optpos subgetoptpos
+#define opterr sgetopterr
+#define optproblem subgetoptproblem
+#define optprogname sgetoptprogname
+#define opteof subgetoptdone
+#endif
+
+#include "subgetopt.h"
+
+extern int sgetoptmine(int,char **,char *);
+extern int sgetopterr;
+extern char *sgetoptprogname;
+
+#endif