diff options
author | Ezra Peisach <epeisach@mit.edu> | 1995-05-24 15:17:28 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 1995-05-24 15:17:28 +0000 |
commit | 5af31729983362de07e947ebdd448208fe625af2 (patch) | |
tree | dbaefeabfe4e37d1002f9752798d35948b1a5bef /src/appl/gss-sample | |
parent | 993be400fbb539b662e3c3defda5997368f331fd (diff) | |
download | krb5-5af31729983362de07e947ebdd448208fe625af2.zip krb5-5af31729983362de07e947ebdd448208fe625af2.tar.gz krb5-5af31729983362de07e947ebdd448208fe625af2.tar.bz2 |
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
Diffstat (limited to 'src/appl/gss-sample')
-rw-r--r-- | src/appl/gss-sample/ChangeLog | 7 | ||||
-rw-r--r-- | src/appl/gss-sample/configure.in | 1 | ||||
-rw-r--r-- | src/appl/gss-sample/gss-client.c | 6 | ||||
-rw-r--r-- | src/appl/gss-sample/gss-server.c | 6 |
4 files changed, 20 insertions, 0 deletions
diff --git a/src/appl/gss-sample/ChangeLog b/src/appl/gss-sample/ChangeLog index 1c35656..813454b 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 <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_ diff --git a/src/appl/gss-sample/configure.in b/src/appl/gss-sample/configure.in index f1e8e4e..45f8226 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 c2b7a02..da95f84 100644 --- a/src/appl/gss-sample/gss-client.c +++ b/src/appl/gss-sample/gss-client.c @@ -29,6 +29,12 @@ #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(); diff --git a/src/appl/gss-sample/gss-server.c b/src/appl/gss-sample/gss-server.c index 55f1852..b90bd37 100644 --- a/src/appl/gss-sample/gss-server.c +++ b/src/appl/gss-sample/gss-server.c @@ -33,6 +33,12 @@ #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(); |