Search
j0ke.net Open Build Service
>
Projects
>
devel
:
tools
:
building
>
fdupes
> fdupes-endianness.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File fdupes-endianness.patch of Package fdupes
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 <string.h> +/* endianness check using glibc endian.h */ +#include <endian.h> + +#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.