summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <daniel@linux.ibm.com>2020-04-06 11:55:42 +1000
committerSergey Vojtovich <svoj@mariadb.org>2020-04-08 14:51:14 +0400
commit2c005020148ea2d03b9ee3555dd8f04aeaa8fdc2 (patch)
tree78a537616f860f4e36467e3240c26ade0cca080d
parent96d4b228ea5cb0dfd42d92b8e058ecd4d9be7b70 (diff)
downloadmariadb-git-2c005020148ea2d03b9ee3555dd8f04aeaa8fdc2.tar.gz
my_largepage: reduce includes already in my_global.h
-rw-r--r--mysys/my_largepage.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/mysys/my_largepage.c b/mysys/my_largepage.c
index 246afa80ee0..b239ed06c77 100644
--- a/mysys/my_largepage.c
+++ b/mysys/my_largepage.c
@@ -16,11 +16,7 @@
#include "mysys_priv.h"
-#ifdef HAVE_SYS_MMAN_H
-#include <sys/mman.h>
-#endif
#ifdef __linux__
-#include <linux/mman.h>
#include <dirent.h>
#endif
#if defined(__linux__) || defined(MAP_ALIGNED)
@@ -28,9 +24,6 @@
#endif
#ifdef HAVE_SOLARIS_LARGE_PAGES
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
#if defined(__sun__) && defined(__GNUC__) && defined(__cplusplus) \
&& defined(_XOPEN_SOURCE)
/* memcntl exist within sys/mman.h, but under-defines what is need to use it */