From 217bb430b615c2db916a4b423915eec9bced8f34 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Wed, 28 Aug 1996 21:51:22 +0000 Subject: [PATCH] shs.c: Only include sys/types.h if present configure.in: Check for sys/types.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9000 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/sha/ChangeLog | 6 ++++++ src/lib/crypto/sha/configure.in | 1 + src/lib/crypto/sha/shs.c | 2 ++ 3 files changed, 9 insertions(+) diff --git a/src/lib/crypto/sha/ChangeLog b/src/lib/crypto/sha/ChangeLog index 52039b0b9..8a312d7fb 100644 --- a/src/lib/crypto/sha/ChangeLog +++ b/src/lib/crypto/sha/ChangeLog @@ -1,3 +1,9 @@ +Wed Aug 28 17:40:53 1996 Theodore Ts'o + + * shs.c: Only include sys/types.h if present. + + * configure.in: Check for sys/types.h + Thu Jun 13 10:54:27 1996 Ezra Peisach * hmac_sha.c: Include string.h for memcpy prototype diff --git a/src/lib/crypto/sha/configure.in b/src/lib/crypto/sha/configure.in index c23c1ce7e..d270e01f3 100644 --- a/src/lib/crypto/sha/configure.in +++ b/src/lib/crypto/sha/configure.in @@ -2,5 +2,6 @@ AC_INIT(configure.in) CONFIG_RULES dnl AC_DEFINE(NEW_SHS) V5_SHARED_LIB_OBJS +AC_CHECK_HEADERS(sys/types.h) SubdirLibraryRule([${OBJS}]) V5_AC_OUTPUT_MAKEFILE diff --git a/src/lib/crypto/sha/shs.c b/src/lib/crypto/sha/shs.c index be4d8fd0d..ee4965036 100644 --- a/src/lib/crypto/sha/shs.c +++ b/src/lib/crypto/sha/shs.c @@ -1,4 +1,6 @@ +#ifdef HAVE_SYS_TYPES_H #include +#endif #include #include "shs.h" -- 2.26.2