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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user