$OpenBSD$

use base definitions of swap16, swap32
replace malloc_usable_size() with 0

Index: src/Texture2DDecoder/crunch/crn_decomp.h
--- src/Texture2DDecoder/crunch/crn_decomp.h.orig
+++ src/Texture2DDecoder/crunch/crn_decomp.h
@@ -35,6 +35,9 @@ using namespace std; 
 #if defined(__APPLE__)
 #include <malloc/malloc.h>
 #define malloc_usable_size malloc_size
+#elif defined(__OpenBSD__)
+#include <sys/malloc.h>
+#define malloc_usable_size(x) 0
 #else
 #include <malloc.h>
 #ifdef _WIN32
@@ -801,8 +804,10 @@ namespace crnd
             swap(p[i], p[size - 1U - i]);
       }
 
+/*
       static inline uint16 swap16(uint16 x) { return static_cast<uint16>((x << 8) | (x >> 8)); }
       static inline uint32 swap32(uint32 x) { return ((x << 24) | ((x << 8) & 0x00FF0000) | (( x >> 8) & 0x0000FF00) | (x >> 24)); }
+*/
 
       uint32 compute_max_mips(uint32 width, uint32 height);
 
@@ -2479,7 +2484,7 @@ namespace crnd
 #ifdef _WIN32
             *pActual_size = ::_msize(p_final_block);
 #else
-            *pActual_size = ::malloc_usable_size(p_final_block);
+            *pActual_size = 0;
 #endif
          }
       }
