From 04ce9255153b66bfabd984f31ab919de80378296 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Mon, 19 Sep 2011 00:58:58 +0000 Subject: [PATCH] Updated command line utilities not to complain about missing getopt() definition Signed-off-by: Sam Hartman git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25201 dc483132-0cff-0310-8789-dd5450dbe970 --- src/clients/kdestroy/Makefile.in | 2 ++ src/clients/kdestroy/kdestroy.c | 3 +++ src/clients/klist/Makefile.in | 2 ++ src/clients/klist/klist.c | 3 +++ src/clients/kvno/Makefile.in | 2 ++ src/clients/kvno/kvno.c | 4 ++++ 6 files changed, 16 insertions(+) diff --git a/src/clients/kdestroy/Makefile.in b/src/clients/kdestroy/Makefile.in index b3bb0b281..2c2f8660d 100644 --- a/src/clients/kdestroy/Makefile.in +++ b/src/clients/kdestroy/Makefile.in @@ -2,6 +2,8 @@ mydir=clients$(S)kdestroy BUILDTOP=$(REL)..$(S).. DEFS= +##WIN32##LOCALINCLUDES=-I$(BUILDTOP)\util\windows\ + SRCS=kdestroy.c PROG_LIBPATH=-L$(TOPLIBD) diff --git a/src/clients/kdestroy/kdestroy.c b/src/clients/kdestroy/kdestroy.c index abe49533d..176f6e2e3 100644 --- a/src/clients/kdestroy/kdestroy.c +++ b/src/clients/kdestroy/kdestroy.c @@ -32,6 +32,9 @@ #ifdef HAVE_UNISTD_H #include #endif +#ifdef _WIN32 +#include +#endif #ifdef __STDC__ #define BELL_CHAR '\a' diff --git a/src/clients/klist/Makefile.in b/src/clients/klist/Makefile.in index c2b4d412a..5fe76e575 100644 --- a/src/clients/klist/Makefile.in +++ b/src/clients/klist/Makefile.in @@ -5,6 +5,8 @@ DEFS= PROG_LIBPATH=-L$(TOPLIBD) PROG_RPATH=$(KRB5_LIBDIR) +##WIN32##LOCALINCLUDES=-I$(BUILDTOP)\util\windows\ + SRCS = klist.c ##WIN32##VERSIONRC = $(BUILDTOP)\windows\version.rc diff --git a/src/clients/klist/klist.c b/src/clients/klist/klist.c index 4757f381a..a9a917156 100644 --- a/src/clients/klist/klist.c +++ b/src/clients/klist/klist.c @@ -31,6 +31,9 @@ #ifdef HAVE_UNISTD_H #include #endif +#ifdef _WIN32 +#include +#endif #include #include #include diff --git a/src/clients/kvno/Makefile.in b/src/clients/kvno/Makefile.in index 741c73844..31d36dc12 100644 --- a/src/clients/kvno/Makefile.in +++ b/src/clients/kvno/Makefile.in @@ -2,6 +2,8 @@ mydir=clients$(S)kvno BUILDTOP=$(REL)..$(S).. DEFS= +##WIN32##LOCALINCLUDES=-I$(BUILDTOP)\util\windows\ + SRCS=kvno.c PROG_LIBPATH=-L$(TOPLIBD) diff --git a/src/clients/kvno/kvno.c b/src/clients/kvno/kvno.c index 74ecf58a8..6a58d01f6 100644 --- a/src/clients/kvno/kvno.c +++ b/src/clients/kvno/kvno.c @@ -31,6 +31,10 @@ #ifdef HAVE_UNISTD_H #include #endif +#ifdef _WIN32 +#include +#endif + #include extern int optind; -- 2.26.2