getopt, optarg, and optind. (For Windows).
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11160
dc483132-0cff-0310-8789-
dd5450dbe970
+Mon Feb 8 22:10:36 1999 Theodore Y. Ts'o <tytso@mit.edu>
+
+ * kinit.c: If unistd.h is not available, use manual definitions
+ for getopt, optarg, and optind. (For Windows).
+
1998-11-13 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Makefile.in: Set the myfulldir and mydir variables (which are
#ifdef GETOPT_LONG
#include "getopt.h"
#else
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#else
+extern int optind;
+extern char *optarg;
+extern int getopt();
+#endif
#endif
#include "com_err.h"