$OpenBSD: patch-crypto_encryptor_cc,v 1.2 2011/10/27 07:59:09 robert Exp $
--- crypto/encryptor.cc.orig	Wed Oct 26 13:46:13 2011
+++ crypto/encryptor.cc	Wed Oct 26 13:46:04 2011
@@ -18,6 +18,11 @@
 #define bswap_16(x) OSSwapInt16(x)
 #define bswap_32(x) OSSwapInt32(x)
 #define bswap_64(x) OSSwapInt64(x)
+#elif defined(OS_OPENBSD)
+#include <sys/endian.h>
+#define bswap_16(x) swap16(x)
+#define bswap_32(x) swap32(x)
+#define bswap_64(x) swap64(x)
 #else
 #include <byteswap.h>
 #endif
