From 356bb966d5c09e2545bf48d6335fc674713b3431 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/src/test/OpenEXRTest/bswap_32.h b/src/test/OpenEXRTest/bswap_32.h
index 1fc4fc2..b4bd9d8 100644
--- a/src/test/OpenEXRTest/bswap_32.h
+++ b/src/test/OpenEXRTest/bswap_32.h
@@ -21,6 +21,9 @@
 #elif defined(__NetBSD__)
 #include <sys/types.h>
 #include <machine/bswap.h>
+#elif defined(__HAIKU__)
+#include <ByteOrder.h>
+#define bswap_32(x) B_SWAP_INT32(x)
 #if defined(__BSWAP_RENAME) && !defined(__bswap_32)
 #define bswap_32(x) bswap32(x)
 #endif
-- 
2.30.2

