summaryrefslogtreecommitdiff
path: root/mysys/checksum.c
diff options
context:
space:
mode:
authorDaniel Black <daniel@linux.ibm.com>2020-06-03 18:59:20 +1000
committerDaniel Black <daniel@linux.ibm.com>2020-06-03 18:59:20 +1000
commit463a8fc5fd8890047159f59b58d295248987265e (patch)
tree24634f82dd9aec52ae32300ab19c4c528e908695 /mysys/checksum.c
parent701efbb25b738f0c971798c5234d4d66b9235e47 (diff)
downloadmariadb-git-463a8fc5fd8890047159f59b58d295248987265e.tar.gz
MDEV-22641: postfix - crc32{,c} fixups for ppc64
Diffstat (limited to 'mysys/checksum.c')
-rw-r--r--mysys/checksum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/checksum.c b/mysys/checksum.c
index e86c2726722..948b9be6164 100644
--- a/mysys/checksum.c
+++ b/mysys/checksum.c
@@ -18,6 +18,7 @@
#include <my_sys.h>
#include <zlib.h>
+#if !defined(HAVE_CRC32_VPMSUM)
/* TODO: remove this once zlib adds inherent support for hardware accelerated
crc32 for all architectures. */
static unsigned int my_crc32_zlib(unsigned int crc, const void *data,
@@ -26,7 +27,6 @@ static unsigned int my_crc32_zlib(unsigned int crc, const void *data,
return (unsigned int) crc32(crc, data, (unsigned int) len);
}
-#if !defined(HAVE_CRC32_VPMSUM)
my_crc32_t my_checksum= my_crc32_zlib;
#endif