diff options
author | unknown <reggie@mdk10.(none)> | 2005-02-23 22:55:46 -0600 |
---|---|---|
committer | unknown <reggie@mdk10.(none)> | 2005-02-23 22:55:46 -0600 |
commit | 5064f263546c5928b142e3f36c6b24f63c0f4da2 (patch) | |
tree | cd1bfdbf7f227ea03ebe9dba639ccafb1edf86ef /sql/sql_map.cc | |
parent | fc79380e6953a86d88eeeb6ec2e05e133a7f1be5 (diff) | |
download | mariadb-git-5064f263546c5928b142e3f36c6b24f63c0f4da2.tar.gz |
More changes to make 5.0.3 compile on Windows
sql_map.cc:
moved include of sys/stat outside of HAVE_SYS_MMAN_H define
my_decimal.h:
Added define for EMBEDDED_SERVER for call to string2my_decimal
mi_packrec.c:
removed cast to caddr_t
myisam/mi_packrec.c:
removed cast to caddr_t
sql/my_decimal.h:
Added define for EMBEDDED_SERVER for call to string2my_decimal
sql/sql_map.cc:
moved include of sys/stat outside of HAVE_SYS_MMAN_H define
Diffstat (limited to 'sql/sql_map.cc')
-rw-r--r-- | sql/sql_map.cc | 5 |
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; } |