From 5af31729983362de07e947ebdd448208fe625af2 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Wed, 24 May 1995 15:17:28 +0000 Subject: [PATCH] Check for string.h and include if present, else include strings.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5862 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/gss-sample/ChangeLog | 7 +++++++ src/appl/gss-sample/configure.in | 1 + src/appl/gss-sample/gss-client.c | 6 ++++++ src/appl/gss-sample/gss-server.c | 6 ++++++ 4 files changed, 20 insertions(+) diff --git a/src/appl/gss-sample/ChangeLog b/src/appl/gss-sample/ChangeLog index 1c35656be..813454b0d 100644 --- a/src/appl/gss-sample/ChangeLog +++ b/src/appl/gss-sample/ChangeLog @@ -1,3 +1,10 @@ +Wed May 24 11:11:45 1995 Ezra Peisach + + * 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_ diff --git a/src/appl/gss-sample/configure.in b/src/appl/gss-sample/configure.in index f1e8e4e77..45f8226a8 100644 --- a/src/appl/gss-sample/configure.in +++ b/src/appl/gss-sample/configure.in @@ -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 diff --git a/src/appl/gss-sample/gss-client.c b/src/appl/gss-sample/gss-client.c index c2b7a0222..da95f8449 100644 --- a/src/appl/gss-sample/gss-client.c +++ b/src/appl/gss-sample/gss-client.c @@ -29,6 +29,12 @@ #include #include +#ifdef USE_STRING_H +#include +#else +#include +#endif + int establish_context(); int connect_to_server(); int call_server(); diff --git a/src/appl/gss-sample/gss-server.c b/src/appl/gss-sample/gss-server.c index 55f185252..b90bd37fe 100644 --- a/src/appl/gss-sample/gss-server.c +++ b/src/appl/gss-sample/gss-server.c @@ -33,6 +33,12 @@ #include #include +#ifdef USE_STRING_H +#include +#else +#include +#endif + int create_socket(); int send_token(); -- 2.26.2