diff options
author | robert.nagy@gmail.com <robert.nagy@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-20 22:39:26 +0000 |
---|---|---|
committer | robert.nagy@gmail.com <robert.nagy@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-20 22:39:26 +0000 |
commit | bae892f9c1b9fea1b9d92ca2d81479239da9d545 (patch) | |
tree | 154e093e7cd9d290b529d717c810afac080e90d8 /crypto | |
parent | c25b4c8cdf37e9bf45dafbc3e53a0b354537557e (diff) | |
download | chromium_src-bae892f9c1b9fea1b9d92ca2d81479239da9d545.zip chromium_src-bae892f9c1b9fea1b9d92ca2d81479239da9d545.tar.gz chromium_src-bae892f9c1b9fea1b9d92ca2d81479239da9d545.tar.bz2 |
OpenBSD patches for net, split from CR #8275005
net/base/host_resolver_proc.cc:
- define AI_ADDRCONFIG as 0
net/base/listen_socket.cc:
- Shuffle and add missing headers since the order
of including these matters.
net/base/net_util.h:
- Missing header for all POSIX platforms. Needed on
OpenBSD and it won't hurt others.
net/dns/dns_config_service_posix.h:
- Missing header for OpenBSD. The order matters here too
net/dns/dns_config_service_posix.cc:
- Use res_init() on OpenBSD and disable RES_ROTATE
if it is not defined
net/net.gyp:
- Do not use libresolv on OpenBSD since it's not there,
the resolver is in libc.
- Include base/platform_mime_util_linux.cc in the OpenBSD builds.
BUG=
TEST=
Review URL: http://codereview.chromium.org/8336024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106604 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/encryptor.cc | 5 |
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 |