From a21a95e4dec574181067ced2dde97e581b9efcc6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
Date: Sun, 29 Oct 2017 09:35:03 +0100
Subject: Haiku support


diff --git a/src/farmhash.cc b/src/farmhash.cc
index cfd4a47..f2b99ff 100644
--- a/src/farmhash.cc
+++ b/src/farmhash.cc
@@ -165,6 +165,15 @@
 #define bswap_64(x) bswap64(x)
 #endif
 
+#elif defined(__HAIKU__)
+
+#define _BSD_SOURCE
+#include <bsd/endian.h>
+#undef bswap_32
+#undef bswap_64
+#define bswap_32(x) bswap32(x)
+#define bswap_64(x) bswap64(x)
+
 #else
 
 #undef bswap_32
-- 
2.14.2

