Index: fdupes-1.40/md5/md5.c =================================================================== --- fdupes-1.40.orig/md5/md5.c 2010-02-15 15:36:58.000000000 +0100 +++ fdupes-1.40/md5/md5.c 2010-02-15 16:01:34.350140290 +0100 @@ -41,6 +41,15 @@ #include "md5.h" #include +/* endianness check using glibc endian.h */ +#include + +#if __BYTE_ORDER == __BIG_ENDIAN +# define ARCH_IS_BIG_ENDIAN 1 +#elif __BYTE_ORDER == __LITTLE_ENDIAN +# define ARCH_IS_BIG_ENDIAN 0 +#endif + #ifdef TEST /* * Compile with -DTEST to create a self-contained executable test program.