diff options
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/crc32/crc32c.cc | 4 | ||||
-rw-r--r-- | mysys/my_largepage.c | 6 |
2 files changed, 6 insertions, 4 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__ */ diff --git a/mysys/my_largepage.c b/mysys/my_largepage.c index c3fc97ffe0a..0fdc4e17a26 100644 --- a/mysys/my_largepage.c +++ b/mysys/my_largepage.c @@ -336,8 +336,10 @@ uchar *my_large_malloc(size_t *size, myf my_flags) # warning "No explicit large page (HUGETLB pages) support in Linux < 3.8" #endif #elif defined(MAP_ALIGNED) - mapflag|= MAP_ALIGNED_SUPER | - MAP_ALIGNED(my_bit_log2_size_t(large_page_size)); + mapflag|= MAP_ALIGNED(my_bit_log2_size_t(large_page_size)); +#if defined(MAP_ALIGNED_SUPER) + mapflag|= MAP_ALIGNED_SUPER; +#endif #endif aligned_size= MY_ALIGN(*size, (size_t) large_page_size); } |