openbsd-ports/www/chromium/patches/patch-crypto_encryptor_cc
robert 1d1f0ea496 update to 15.0.874.102.
switch from using the hacked macosx transport dib to the linux one
which uses sysv shms.
make sure you also have a current kernel before using this version
2011-10-27 07:59:08 +00:00

16 lines
488 B
Plaintext

$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