shs.c: Only include sys/types.h if present
authorTheodore Tso <tytso@mit.edu>
Wed, 28 Aug 1996 21:51:22 +0000 (21:51 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 28 Aug 1996 21:51:22 +0000 (21:51 +0000)
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
src/lib/crypto/sha/configure.in
src/lib/crypto/sha/shs.c

index 52039b0b9d39f5abef86e23bb02c8d9a09bd2db3..8a312d7fb268038cd73a2f8f0f45f51fc403e137 100644 (file)
@@ -1,3 +1,9 @@
+Wed Aug 28 17:40:53 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+       * 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  <epeisach@kangaroo.mit.edu>
 
        * hmac_sha.c: Include string.h for memcpy prototype
index c23c1ce7e360f5cc06416e3b0f6de94b9c3cc062..d270e01f33c643a9317c3c1f0294bf862d1704f7 100644 (file)
@@ -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
index be4d8fd0d5f87f985bb925c6b8cfbc93114cc01a..ee4965036140c236591035b79bc7f70dfedaae3d 100644 (file)
@@ -1,4 +1,6 @@
+#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
+#endif
 #include <string.h>
 #include "shs.h"