diff --git a/md5.c b/md5.c index d675dd1c022..fdb166a1188 100644 --- a/md5.c +++ b/md5.c @@ -20,6 +20,7 @@ #include #include +#include "endianness.h" #include "md5.h" #ifndef __OS_solaris @@ -159,7 +160,7 @@ MD5Transform(u_int32_t state[4], const u_int8_t block[MD5_BLOCK_LENGTH]) { u_int32_t a, b, c, d, in[MD5_BLOCK_LENGTH / 4]; -#ifndef WORDS_BIGENDIAN +#ifndef __IS_BIG_ENDIAN memcpy(in, block, sizeof(in)); #else for (a = 0; a < MD5_BLOCK_LENGTH / 4; a++) {