summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorBrad Smith <brad@comstyle.com>2021-05-07 01:33:27 -0400
committerDaniel Black <daniel@mariadb.org>2021-05-26 11:17:26 +1000
commit4926498a67794ff27d1dd5795ce8b75e09818ed8 (patch)
treed3e9ef1f8578d21269357ed5f4b82654c4cfcc96 /mysys
parent6d549aecf5256b0664a33482481627d0dd30a80d (diff)
downloadmariadb-git-4926498a67794ff27d1dd5795ce8b75e09818ed8.tar.gz
CRC32 on OpenBSD/powerpc64.
closes #1828
Diffstat (limited to 'mysys')
-rw-r--r--mysys/crc32/crc32c.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/crc32/crc32c.cc b/mysys/crc32/crc32c.cc
index 082d467e7da..b48e744a663 100644
--- a/mysys/crc32/crc32c.cc
+++ b/mysys/crc32/crc32c.cc
@@ -517,12 +517,12 @@ static int arch_ppc_probe(void) {
return arch_ppc_crc32;
}
-#elif _AIX
+#elif defined(_AIX) || defined(__OpenBSD__)
static int arch_ppc_probe(void) {
arch_ppc_crc32 = 0;
#if defined(__powerpc64__)
- // AIX 7.1+ has vector crypto features on all POWER 8+
+ // AIX 7.1+/OpenBSD has vector crypto features on all POWER 8+
arch_ppc_crc32 = 1;
#endif /* __powerpc64__ */