From 21f2741953bbb926f400e23b5d2654435f54e39b Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Sun, 14 Aug 1994 04:11:38 +0000 Subject: [PATCH] use unistd.h if the system has it lint git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4128 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/gss-sample/configure.in | 1 + src/appl/gss-sample/gss-misc.c | 3 +++ src/appl/gss-sample/gss-server.c | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/appl/gss-sample/configure.in b/src/appl/gss-sample/configure.in index f38ce2ac2..181bfb682 100644 --- a/src/appl/gss-sample/configure.in +++ b/src/appl/gss-sample/configure.in @@ -4,6 +4,7 @@ CONFIG_RULES AC_SET_BUILDTOP AC_HAVE_LIBRARY(socket) AC_HAVE_LIBRARY(nsl) +AC_HAVE_HEADERS(unistd.h) KRB_INCLUDE ISODE_INCLUDE WITH_KRB5ROOT diff --git a/src/appl/gss-sample/gss-misc.c b/src/appl/gss-sample/gss-misc.c index 284bcea4c..8ce6b3af0 100644 --- a/src/appl/gss-sample/gss-misc.c +++ b/src/appl/gss-sample/gss-misc.c @@ -27,6 +27,9 @@ static char *rcsid = "$Header$"; #include #include #include +#ifdef HAVE_UNISTD_H +#include +#endif #include #include diff --git a/src/appl/gss-sample/gss-server.c b/src/appl/gss-sample/gss-server.c index 59229bd32..e3b5caf52 100644 --- a/src/appl/gss-sample/gss-server.c +++ b/src/appl/gss-sample/gss-server.c @@ -28,6 +28,9 @@ static char *rcsid = "$Header$"; #include #include #include +#ifdef HAVE_UNISTD_H +#include +#endif #include #include @@ -48,7 +51,6 @@ main(argc, argv) int argc; char **argv; { - struct sockaddr_in saddr; char *service_name; u_short port = 4444; int s; -- 2.26.2