$OpenBSD$

Index: encode/hevcencode.c
--- encode/hevcencode.c.orig
+++ encode/hevcencode.c
@@ -482,6 +482,10 @@ struct __bitstream {
 };
 typedef struct __bitstream bitstream;
 
+#ifdef __OpenBSD__
+#include <sys/endian.h>
+#define va_swap32(x) swap32(x)
+#else
 static unsigned int
 va_swap32(unsigned int val)
 {
@@ -492,6 +496,7 @@ va_swap32(unsigned int val)
             (pval[2] << 8)      |
             (pval[3] << 0));
 }
+#endif /* __OpenBSD__ */
 
 static void
 bitstream_start(bitstream *bs)
