From: Theodore Tso Date: Tue, 9 Feb 1999 03:11:22 +0000 (+0000) Subject: kinit.c: If unistd.h is not available, use manual definitions for X-Git-Tag: krb5-1.1-beta1~369 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6d75089a301e573403d08f85ff711c3d3b80d6ba;p=krb5.git 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 --- 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"