diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2020-04-03 20:29:38 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2020-04-04 14:55:51 +0400 |
commit | fc6e8b4b1b2f9fcb62d0459892c59ece759fd144 (patch) | |
tree | 58f99fb111ed3d434c73e01af71fd8a3532c38df /mysys | |
parent | 40f4d8c6715320aa3188f46bbc9958cd4768d0fa (diff) | |
download | mariadb-git-fc6e8b4b1b2f9fcb62d0459892c59ece759fd144.tar.gz |
Cleanup HAVE_MMAP_ALIGNED: one cmake check less
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/my_largepage.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mysys/my_largepage.c b/mysys/my_largepage.c index c0d11ca6345..95813ccee1c 100644 --- a/mysys/my_largepage.c +++ b/mysys/my_largepage.c @@ -23,7 +23,7 @@ #include <linux/mman.h> #include <dirent.h> #endif -#if defined(__linux__) || defined(HAVE_MMAP_ALIGNED) +#if defined(__linux__) || defined(MAP_ALIGNED) #include "my_bit.h" #endif @@ -267,7 +267,7 @@ static void my_get_large_page_sizes(size_t sizes[my_large_page_sizes_length]) /* Multisized (Linux/FreeBSD) large pages allocator */ -#if defined(__linux__) || defined(HAVE_MMAP_ALIGNED) +#if defined(__linux__) || defined(MAP_ALIGNED) uchar* my_large_malloc_int(size_t *size, myf my_flags) { uchar* ptr; @@ -343,7 +343,7 @@ uchar* my_large_malloc_int(size_t *size, myf my_flags) DBUG_RETURN(ptr); } -#endif /* defined(__linux__) || defined(HAVE_MMAP_ALIGNED) */ +#endif /* defined(__linux__) || defined(MAP_ALIGNED) */ #if defined(HAVE_GETPAGESIZES) && !defined(__linux__) static void my_get_large_page_sizes(size_t sizes[my_large_page_sizes_length]) @@ -383,7 +383,7 @@ my_bool my_large_free_int(void *ptr, size_t size) } #endif /* HAVE_MMAP */ -#if defined(HAVE_MMAP) && !defined(__linux__) && !defined(HAVE_MMAP_ALIGNED) \ +#if defined(HAVE_MMAP) && !defined(__linux__) && !defined(MAP_ALIGNED) \ && !defined(_WIN32) /* Solaris for example has only MAP_ANON, FreeBSD has MAP_ANONYMOUS and |