summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1999-02-09 03:11:22 +0000
committerTheodore Tso <tytso@mit.edu>1999-02-09 03:11:22 +0000
commit6d75089a301e573403d08f85ff711c3d3b80d6ba (patch)
tree52bb11db64813a4eb50e9c151d7caf91bbe6e26d /src
parent1364052f7b2120fcee8c59ae576abe2a81858b89 (diff)
downloadkrb5-6d75089a301e573403d08f85ff711c3d3b80d6ba.tar.gz
krb5-6d75089a301e573403d08f85ff711c3d3b80d6ba.tar.xz
krb5-6d75089a301e573403d08f85ff711c3d3b80d6ba.zip
kinit.c: If unistd.h is not available, use manual definitions for
getopt, optarg, and optind. (For Windows). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11160 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/clients/kinit/ChangeLog5
-rw-r--r--src/clients/kinit/kinit.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/src/clients/kinit/ChangeLog b/src/clients/kinit/ChangeLog
index 3cbc2a5e0..1c89a527f 100644
--- a/src/clients/kinit/ChangeLog
+++ b/src/clients/kinit/ChangeLog
@@ -1,3 +1,8 @@
+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
diff --git a/src/clients/kinit/kinit.c b/src/clients/kinit/kinit.c
index f02db2e18..c29b26e6c 100644
--- a/src/clients/kinit/kinit.c
+++ b/src/clients/kinit/kinit.c
@@ -31,7 +31,13 @@
#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"