summaryrefslogtreecommitdiff
path: root/mysys/my_largepage.c
diff options
context:
space:
mode:
authorDaniel Black <daniel@mariadb.org>2020-11-19 07:46:27 +1100
committerDaniel Black <daniel@mariadb.org>2020-11-19 16:30:17 +1100
commit3b486c28f710940631b5cb7a9781965827fbfa4b (patch)
tree1f82116b58dda2bf42594c8989afcf092f4531b5 /mysys/my_largepage.c
parent33d41167c54fed9116cd8f0dfa01b43733988e6d (diff)
downloadmariadb-git-3b486c28f710940631b5cb7a9781965827fbfa4b.tar.gz
MDEV-24125: linux large pages, linux/mman.h needed
Centos/RHEL7 have the MAP_HUGE_SHIFT constant defined in linux/mman.h which needed to get included.
Diffstat (limited to 'mysys/my_largepage.c')
-rw-r--r--mysys/my_largepage.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysys/my_largepage.c b/mysys/my_largepage.c
index 9efd0797860..c3fc97ffe0a 100644
--- a/mysys/my_largepage.c
+++ b/mysys/my_largepage.c
@@ -23,6 +23,9 @@
#if defined(__linux__) || defined(MAP_ALIGNED)
#include "my_bit.h"
#endif
+#ifdef HAVE_LINUX_MMAN_H
+#include <linux/mman.h>
+#endif
#ifdef HAVE_SOLARIS_LARGE_PAGES
#if defined(__sun__) && defined(__GNUC__) && defined(__cplusplus) \