Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Unified Diff: crypto/encryptor.cc

Issue 8336024: OpenBSD patches for net, split from CR #8275005 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove arpa/nameser.h Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/base/dnsrr_resolver.cc » ('j') | net/base/dnsrr_resolver.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | net/base/dnsrr_resolver.cc » ('j') | net/base/dnsrr_resolver.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698