diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/util/murmurhash3.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util/murmurhash3.c b/src/util/murmurhash3.c index c14cd7ce..4bd4dc71 100644 --- a/src/util/murmurhash3.c +++ b/src/util/murmurhash3.c @@ -11,6 +11,16 @@ #include <endian.h> #include <string.h> +/* support RHEL5 lack of definitions */ +#ifndef le32toh +# if __BYTE_ORDER == __LITTLE_ENDIAN +# define le32toh(x) (x) +# else +# define le32toh(x) __bswap_32 (x) +# endif +#endif + + static uint32_t rotl(uint32_t x, int8_t r) { return (x << r) | (x >> (32 - r)); |