summaryrefslogtreecommitdiff
path: root/sql/sql_map.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_map.cc')
-rw-r--r--sql/sql_map.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_map.cc b/sql/sql_map.cc
index 1b874a4fd88..e557840957e 100644
--- a/sql/sql_map.cc
+++ b/sql/sql_map.cc
@@ -19,10 +19,11 @@
#pragma implementation // gcc: Class implementation
#endif
+#include <sys/stat.h>
+
#include "mysql_priv.h"
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
-#include <sys/stat.h>
#endif
#ifndef MAP_NORESERVE
@@ -71,7 +72,7 @@ mapped_files::~mapped_files()
#ifdef HAVE_MMAP
if (file >= 0)
{
- VOID(my_munmap((caddr_t) map,size));
+ VOID(my_munmap(map,size));
VOID(my_close(file,MYF(0)));
file= -1; map=0;
}