From 1e35e9673809bd108236f9cda4b2699604b06662 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Fri, 8 Jun 2001 15:51:40 +0000 Subject: [PATCH] Include unistd.h (if present) for getopt() prototype git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13307 dc483132-0cff-0310-8789-dd5450dbe970 --- src/clients/kdestroy/ChangeLog | 4 ++++ src/clients/kdestroy/kdestroy.c | 3 +++ src/clients/klist/ChangeLog | 4 ++++ src/clients/klist/klist.c | 3 +++ src/clients/kvno/ChangeLog | 4 ++++ src/clients/kvno/kvno.c | 3 +++ 6 files changed, 21 insertions(+) diff --git a/src/clients/kdestroy/ChangeLog b/src/clients/kdestroy/ChangeLog index bf4c61b6d..6d6cf1fb8 100644 --- a/src/clients/kdestroy/ChangeLog +++ b/src/clients/kdestroy/ChangeLog @@ -1,3 +1,7 @@ +2001-06-08 Ezra Peisach + + * kdestroy.c: Include unistd.h (if present) for getopt() prototype. + 2000-08-02 Ezra Peisach * kdestroy.c (main): Clean up compiler warnings. diff --git a/src/clients/kdestroy/kdestroy.c b/src/clients/kdestroy/kdestroy.c index 940688b50..a9072ed54 100644 --- a/src/clients/kdestroy/kdestroy.c +++ b/src/clients/kdestroy/kdestroy.c @@ -31,6 +31,9 @@ #include #include #include +#ifdef HAVE_UNISTD_H +#include +#endif #ifdef KRB5_KRB4_COMPAT #include diff --git a/src/clients/klist/ChangeLog b/src/clients/klist/ChangeLog index 50bf5da55..eb29aad85 100644 --- a/src/clients/klist/ChangeLog +++ b/src/clients/klist/ChangeLog @@ -1,3 +1,7 @@ +2001-06-08 Ezra Peisach + + * klist.c: Include unistd.h (if present) for getopt() prototype. + 2001-04-26 Ken Raeburn * klist.c (one_addr): Drop getipnodebyaddr support. diff --git a/src/clients/klist/klist.c b/src/clients/klist/klist.c index 06bed72bd..7d95feb63 100644 --- a/src/clients/klist/klist.c +++ b/src/clients/klist/klist.c @@ -33,6 +33,9 @@ #endif #include #include +#ifdef HAVE_UNISTD_H +#include +#endif #include #include #include diff --git a/src/clients/kvno/ChangeLog b/src/clients/kvno/ChangeLog index 459dea492..14169ae92 100644 --- a/src/clients/kvno/ChangeLog +++ b/src/clients/kvno/ChangeLog @@ -1,3 +1,7 @@ +2001-06-08 Ezra Peisach + + * kvno.c: Include unistd.h (if present) for getopt() prototype. + 2000-08-02 Ezra Peisach * kvno.c (main): Compiler warning fixes - declare usage as static, and diff --git a/src/clients/kvno/kvno.c b/src/clients/kvno/kvno.c index b4d2993ae..ce4c9bf40 100644 --- a/src/clients/kvno/kvno.c +++ b/src/clients/kvno/kvno.c @@ -25,6 +25,9 @@ */ #include +#ifdef HAVE_UNISTD_H +#include +#endif #include #include -- 2.26.2