$OpenBSD$

Index: util.h
--- util.h.orig
+++ util.h
@@ -22,7 +22,7 @@
 
 #include <stdio.h>
 
-#ifdef _ALLBSD_SOURCE
+#if defined(_ALLBSD_SOURCE) || defined(__OpenBSD__)
 #include <machine/endian.h>
 #elif __linux__
 #include <endian.h>
@@ -36,7 +36,7 @@
 #define htole64(x) OSSwapHostToLittleInt64(x)
 #define htole32(x) OSSwapHostToLittleInt32(x)
 #define htole16(x) OSSwapHostToLittleInt16(x)
-#else
+#elif !defined(__OpenBSD__)
 #include <byteswap.h>
 #endif
 
