From 64bba65c112b0711850cadfb54a0dc47f825b6f8 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 23 Mar 2011 00:56:35 +1100 Subject: [PATCH] Really enable big endian support in md5.c --- md5.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/md5.c b/md5.c index 9ae7b79..665ed3b 100644 --- a/md5.c +++ b/md5.c @@ -36,11 +36,17 @@ # include "unlocked-io.h" #endif -#ifdef _LIBC +#ifdef HAVE_ENDIAN_H # include +#elif HAVE_SYS_ENDIAN_H +# include +#endif +#ifdef HAVE_ARPA_INET_H +# include +#endif # if __BYTE_ORDER == __BIG_ENDIAN # define WORDS_BIGENDIAN 1 -# endif + /* We need to keep the namespace clean so define the MD5 function protected using leading __ . */ # define md5_init_ctx __md5_init_ctx