From 1658c567191c35beaddffafdb079abe33248037b Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 28 Aug 2013 08:31:17 +0200 Subject: UTIL: Create new wraper header file sss_endian.h Some platform have header file endian.h and anothers have sys/endian.h. We nedd to use conditional build to handle it correctly, therefore new header file sss_endian.h was created. --- src/util/murmurhash3.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/util/murmurhash3.c') diff --git a/src/util/murmurhash3.c b/src/util/murmurhash3.c index 80e52ed56..cab138e17 100644 --- a/src/util/murmurhash3.c +++ b/src/util/murmurhash3.c @@ -8,19 +8,10 @@ #include #include -#include #include -#include - -/* 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 +#include "config.h" +#include "util/sss_endian.h" static uint32_t rotl(uint32_t x, int8_t r) { -- cgit