use unistd.h if the system has it
authorMark Eichin <eichin@mit.edu>
Sun, 14 Aug 1994 04:11:38 +0000 (04:11 +0000)
committerMark Eichin <eichin@mit.edu>
Sun, 14 Aug 1994 04:11:38 +0000 (04:11 +0000)
lint

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4128 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/gss-sample/configure.in
src/appl/gss-sample/gss-misc.c
src/appl/gss-sample/gss-server.c

index f38ce2ac2ed7f9c72078923ede71b78fd5629286..181bfb682bfa4d4ab458ccbc759ccf29f1ae9b01 100644 (file)
@@ -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
index 284bcea4c5dd7f9104b45e2a03571d8e1cdda33d..8ce6b3af0c0778e246b071e3a9d149776d0616e1 100644 (file)
@@ -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>
index 59229bd324e87bd8c345a779051d0a99d2375be1..e3b5caf529f2a4b9a9633eab1b533270cd42b52b 100644 (file)
@@ -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;