From: Theodore Tso Date: Wed, 28 Aug 1996 21:51:22 +0000 (+0000) Subject: shs.c: Only include sys/types.h if present X-Git-Tag: krb5-1.0-beta7~88 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=217bb430b615c2db916a4b423915eec9bced8f34;p=krb5.git 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 --- 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"