1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

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
This commit is contained in:
reggie@mdk10.(none)
2005-02-23 22:55:46 -06:00
parent cfdf5bcdc8
commit 579293a29f
3 changed files with 5 additions and 6 deletions

View File

@ -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;
}