Index: crypto/encryptor.cc |
diff --git a/crypto/encryptor.cc b/crypto/encryptor.cc |
index 53e88f933f4ef206a044dc3956ed5b3d736b3dc7..763dc2c1cb54764ab2428054f9585616f6decdde 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 |