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