summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-rw-r--r--crypto/encryptor.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/encryptor.cc b/crypto/encryptor.cc
index 53e88f9..763dc2c 100644
--- a/crypto/encryptor.cc
+++ b/crypto/encryptor.cc
@@ -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