From 14c5372f03317d05cfba8805b199c2c8ed6e617e Mon Sep 17 00:00:00 2001 From: ewt Date: Wed, 25 Sep 1996 19:14:52 +0000 Subject: [PATCH] conditionally include , CVS patchset: 1049 CVS date: 1996/09/25 19:14:52 --- lib/md5.c | 8 +++++++- lib/oldheader.c | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/lib/md5.c b/lib/md5.c index 8d5eaab..17dcb77 100644 --- a/lib/md5.c +++ b/lib/md5.c @@ -14,8 +14,14 @@ * needed on buffers full of bytes, and then call MD5Final, which * will fill a supplied 16-byte array with the digest. */ -#include /* for memcpy() */ + +#if defined HAVE_ENDIAN_H #include +#elif defined HAVE_MACHINE_ENDIAN_H +#include +#endif + +#include /* for memcpy() */ #include "md5.h" void byteReverse(unsigned char *buf, unsigned longs); diff --git a/lib/oldheader.c b/lib/oldheader.c index b90ca63..bcc9712 100644 --- a/lib/oldheader.c +++ b/lib/oldheader.c @@ -1,4 +1,9 @@ -#include +#if defined HAVE_ENDIAN_H +# include +#else defined HAVE_MACHINE_ENDIAN_H +# include +#endif + #include #include #include -- 2.7.4