From a12109ea303ac2b433d9d6f6dc681d27eb4fb591 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sat, 26 Oct 2019 20:01:01 +0200
Subject: define bswap_32 for Haiku.


diff --git a/OpenEXR/IlmImfTest/bswap_32.h b/OpenEXR/IlmImfTest/bswap_32.h
index 4df6ec0..4443e4b 100644
--- a/OpenEXR/IlmImfTest/bswap_32.h
+++ b/OpenEXR/IlmImfTest/bswap_32.h
@@ -24,6 +24,9 @@
 #if defined(__BSWAP_RENAME) && !defined(__bswap_32)
 #define bswap_32(x) bswap32(x)
 #endif
+#elif defined(__HAIKU__)
+#include <ByteOrder.h>
+#define bswap_32(x) B_SWAP_INT32(x)
 #else
 #include <byteswap.h>
 #endif
-- 
2.30.0

