--- a/md5.c
+++ b/md5.c
@@ -35,7 +35,7 @@
 
 #include "md5.h"
 
-#ifdef _LIBC
+#if defined(_LIBC) || defined(__UCLIBC__)
 # include <endian.h>
 # if __BYTE_ORDER == __BIG_ENDIAN
 #  define WORDS_BIGENDIAN 1