Commit 5b2fa078 authored by Sergey Vojtovich's avatar Sergey Vojtovich

Cleanup mman.h includes

As it is included from my_global.h already.
parent 716c748f
...@@ -964,8 +964,6 @@ extern ulonglong my_getcputime(void); ...@@ -964,8 +964,6 @@ extern ulonglong my_getcputime(void);
#endif #endif
#ifdef HAVE_SYS_MMAN_H #ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#ifndef MAP_NOSYNC #ifndef MAP_NOSYNC
#define MAP_NOSYNC 0 #define MAP_NOSYNC 0
#endif #endif
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include <my_list.h> #include <my_list.h>
#ifdef HAVE_MLOCK #ifdef HAVE_MLOCK
#include <sys/mman.h>
struct st_mem_list struct st_mem_list
{ {
......
...@@ -157,16 +157,11 @@ extern "C" { // Because of SCO 3.2V4.2 ...@@ -157,16 +157,11 @@ extern "C" { // Because of SCO 3.2V4.2
#include <my_libwrap.h> #include <my_libwrap.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
#ifdef __WIN__ #ifdef __WIN__
#include <crtdbg.h> #include <crtdbg.h>
#endif #endif
#ifdef HAVE_SOLARIS_LARGE_PAGES #ifdef HAVE_SOLARIS_LARGE_PAGES
#include <sys/mman.h>
#if defined(__sun__) && defined(__GNUC__) && defined(__cplusplus) \ #if defined(__sun__) && defined(__GNUC__) && defined(__cplusplus) \
&& defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE)
extern int getpagesizes(size_t *, int); extern int getpagesizes(size_t *, int);
......
...@@ -329,9 +329,6 @@ TODO list: ...@@ -329,9 +329,6 @@ TODO list:
*/ */
#include "mariadb.h" /* NO_EMBEDDED_ACCESS_CHECKS */ #include "mariadb.h" /* NO_EMBEDDED_ACCESS_CHECKS */
#if defined(DBUG_OFF) && defined(HAVE_MADVISE)
#include <sys/mman.h>
#endif
#include "sql_priv.h" #include "sql_priv.h"
#include "sql_basic_types.h" #include "sql_basic_types.h"
#include "sql_cache.h" #include "sql_cache.h"
......
...@@ -92,7 +92,6 @@ support cross-platform development and expose comonly used SQL names. */ ...@@ -92,7 +92,6 @@ support cross-platform development and expose comonly used SQL names. */
#include <sys/stat.h> #include <sys/stat.h>
#ifndef _WIN32 #ifndef _WIN32
# include <sys/mman.h> /* mmap() for os0proc.cc */
# include <sched.h> # include <sched.h>
# include "my_config.h" # include "my_config.h"
#endif #endif
......
...@@ -129,9 +129,6 @@ with (), thus: ...@@ -129,9 +129,6 @@ with (), thus:
#include <string.h> /* strlen(), strrchr(), strncmp() */ #include <string.h> /* strlen(), strrchr(), strncmp() */
#include "my_global.h" /* needed for headers from mysql/psi/ */ #include "my_global.h" /* needed for headers from mysql/psi/ */
#if !defined(DBUG_OFF) && defined(HAVE_MADVISE)
#include <sys/mman.h>
#endif
/* JAN: TODO: missing 5.7 header */ /* JAN: TODO: missing 5.7 header */
#ifdef HAVE_MYSQL_MEMORY_H #ifdef HAVE_MYSQL_MEMORY_H
......
...@@ -52,9 +52,6 @@ ...@@ -52,9 +52,6 @@
#ifdef HAVE_SYS_VADVISE_H #ifdef HAVE_SYS_VADVISE_H
#include <sys/vadvise.h> #include <sys/vadvise.h>
#endif #endif
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
/* Functions defined in this file */ /* Functions defined in this file */
......
...@@ -14,9 +14,6 @@ ...@@ -14,9 +14,6 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA */ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA */
#include "maria_def.h" #include "maria_def.h"
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
#include "ma_blockrec.h" #include "ma_blockrec.h"
static void maria_extra_keyflag(MARIA_HA *info, static void maria_extra_keyflag(MARIA_HA *info,
......
...@@ -1528,9 +1528,6 @@ static uint max_bit(register uint value) ...@@ -1528,9 +1528,6 @@ static uint max_bit(register uint value)
/***************************************************************************** /*****************************************************************************
Some redefined functions to handle files when we are using memmap Some redefined functions to handle files when we are using memmap
*****************************************************************************/ *****************************************************************************/
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
#ifdef HAVE_MMAP #ifdef HAVE_MMAP
......
...@@ -23,9 +23,6 @@ ...@@ -23,9 +23,6 @@
#include <my_getopt.h> #include <my_getopt.h>
#include <my_check_opt.h> #include <my_check_opt.h>
#include <my_handler_errors.h> #include <my_handler_errors.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
static uint decode_bits; static uint decode_bits;
static char **default_argv; static char **default_argv;
......
...@@ -46,9 +46,6 @@ ...@@ -46,9 +46,6 @@
#ifdef HAVE_SYS_VADVISE_H #ifdef HAVE_SYS_VADVISE_H
#include <sys/vadvise.h> #include <sys/vadvise.h>
#endif #endif
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
#include "rt_index.h" #include "rt_index.h"
#include <mysqld_error.h> #include <mysqld_error.h>
......
...@@ -15,9 +15,6 @@ ...@@ -15,9 +15,6 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
#include "myisamdef.h" #include "myisamdef.h"
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
static void mi_extra_keyflag(MI_INFO *info, enum ha_extra_function function); static void mi_extra_keyflag(MI_INFO *info, enum ha_extra_function function);
......
...@@ -1479,9 +1479,6 @@ static uint max_bit(register uint value) ...@@ -1479,9 +1479,6 @@ static uint max_bit(register uint value)
/***************************************************************************** /*****************************************************************************
Some redefined functions to handle files when we are using memmap Some redefined functions to handle files when we are using memmap
*****************************************************************************/ *****************************************************************************/
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
#ifdef HAVE_MMAP #ifdef HAVE_MMAP
......
...@@ -21,9 +21,6 @@ ...@@ -21,9 +21,6 @@
#include <stdarg.h> #include <stdarg.h>
#include <my_getopt.h> #include <my_getopt.h>
#include <my_bit.h> #include <my_bit.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
static uint decode_bits; static uint decode_bits;
static char **default_argv; static char **default_argv;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment