From 6d75089a301e573403d08f85ff711c3d3b80d6ba Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Tue, 9 Feb 1999 03:11:22 +0000 Subject: [PATCH] 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 --- src/clients/kinit/ChangeLog | 5 +++++ src/clients/kinit/kinit.c | 6 ++++++ 2 files changed, 11 insertions(+) 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 + + * kinit.c: If unistd.h is not available, use manual definitions + for getopt, optarg, and optind. (For Windows). + 1998-11-13 Theodore Ts'o * 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 +#else +extern int optind; +extern char *optarg; +extern int getopt(); +#endif #endif #include "com_err.h" -- 2.26.2