diff options
author | Mark Eichin <eichin@mit.edu> | 1994-08-14 04:11:38 +0000 |
---|---|---|
committer | Mark Eichin <eichin@mit.edu> | 1994-08-14 04:11:38 +0000 |
commit | 21f2741953bbb926f400e23b5d2654435f54e39b (patch) | |
tree | 147374c5fe181dfe1d44323e2a201f87aff26338 /src/appl/gss-sample | |
parent | 2f1c04f9639ee005ba6cc9516bee011e2260ff19 (diff) | |
download | krb5-21f2741953bbb926f400e23b5d2654435f54e39b.zip krb5-21f2741953bbb926f400e23b5d2654435f54e39b.tar.gz krb5-21f2741953bbb926f400e23b5d2654435f54e39b.tar.bz2 |
use unistd.h if the system has it
lint
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4128 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl/gss-sample')
-rw-r--r-- | src/appl/gss-sample/configure.in | 1 | ||||
-rw-r--r-- | src/appl/gss-sample/gss-misc.c | 3 | ||||
-rw-r--r-- | src/appl/gss-sample/gss-server.c | 4 |
3 files changed, 7 insertions, 1 deletions
diff --git a/src/appl/gss-sample/configure.in b/src/appl/gss-sample/configure.in index f38ce2a..181bfb6 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 284bcea..8ce6b3a 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 <stdio.h> #include <sys/types.h> #include <netinet/in.h> +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif #include <gssapi/gssapi.h> #include <gssapi/gssapi_generic.h> diff --git a/src/appl/gss-sample/gss-server.c b/src/appl/gss-sample/gss-server.c index 59229bd..e3b5caf 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 <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif #include <gssapi/gssapi.h> #include <gssapi/gssapi_generic.h> @@ -48,7 +51,6 @@ main(argc, argv) int argc; char **argv; { - struct sockaddr_in saddr; char *service_name; u_short port = 4444; int s; |