summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-06-15 10:58:53 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-06-15 14:38:22 -0400
commitdef3beb6410857314fe4d17581c4c95ae0c230d1 (patch)
tree70af4717981a31b6ff0aacdf6d8efea1334e27b5
parent42ea38d7d06673bf6dc16ccfbd19e27f0a696b28 (diff)
downloadsssd-def3beb6410857314fe4d17581c4c95ae0c230d1.tar.gz
sssd-def3beb6410857314fe4d17581c4c95ae0c230d1.tar.xz
sssd-def3beb6410857314fe4d17581c4c95ae0c230d1.zip
Fix compilation on older little-endian systems
-rw-r--r--src/util/murmurhash3.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/murmurhash3.c b/src/util/murmurhash3.c
index 519fafaa1..80e52ed56 100644
--- a/src/util/murmurhash3.c
+++ b/src/util/murmurhash3.c
@@ -10,13 +10,14 @@
#include <stdint.h>
#include <endian.h>
#include <string.h>
+#include <byteswap.h>
/* support RHEL5 lack of definitions */
#ifndef le32toh
# if __BYTE_ORDER == __LITTLE_ENDIAN
# define le32toh(x) (x)
# else
-# define le32toh(x) __bswap_32 (x)
+# define le32toh(x) bswap_32 (x)
# endif
#endif