Check for string.h and include if present, else include strings.h
authorEzra Peisach <epeisach@mit.edu>
Wed, 24 May 1995 15:17:28 +0000 (15:17 +0000)
committerEzra Peisach <epeisach@mit.edu>
Wed, 24 May 1995 15:17:28 +0000 (15:17 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5862 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/gss-sample/ChangeLog
src/appl/gss-sample/configure.in
src/appl/gss-sample/gss-client.c
src/appl/gss-sample/gss-server.c

index 1c35656be4c2efe2132b67a2bffd1f6e06f437a6..813454b0d07aa36bafc7bef1fba7b3cddd03938e 100644 (file)
@@ -1,3 +1,10 @@
+Wed May 24 11:11:45 1995  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * gss-client.c: Include string.h or strings.h
+
+       * gss-server.c: Include string.h or strings.h
+
+       * configure.in: Check for string.h
 
 Mon May 22 15:41:33 EDT 1995   Paul Park       (pjpark@mit.edu)
        * gss-server.c  : (server_establish_context) Don't call gss_release_
index f1e8e4e77402c295ec5c07458a903478dc634123..45f8226a851b8f65e9b3cdfdf3483f6bc21cb413 100644 (file)
@@ -4,6 +4,7 @@ CONFIG_RULES
 AC_SET_BUILDTOP
 WITH_NETLIB
 AC_HAVE_HEADERS(unistd.h)
+AC_HEADER_CHECK(string.h,AC_DEFINE(USE_STRING_H))
 KRB_INCLUDE
 WITH_KRB5ROOT
 AC_CONST
index c2b7a02228c8c1f559b0fbe03b264e85943c24ed..da95f8449fa84499a61367711d04ffe04d249788 100644 (file)
 #include <gssapi/gssapi.h>
 #include <gssapi/gssapi_generic.h>
 
+#ifdef USE_STRING_H
+#include <string.h>
+#else
+#include <strings.h>
+#endif
+
 int establish_context();
 int connect_to_server();
 int call_server();
index 55f18525282aadc81126302d50300ebeadf12780..b90bd37fe28db069197fffca1c432649d31a3702 100644 (file)
 #include <gssapi/gssapi.h>
 #include <gssapi/gssapi_generic.h>
 
+#ifdef USE_STRING_H
+#include <string.h>
+#else
+#include <strings.h>
+#endif
+
 int create_socket();
 
 int send_token();