summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <msvensson@shellback.(none)>2006-04-04 09:59:19 +0200
committerunknown <msvensson@shellback.(none)>2006-04-04 09:59:19 +0200
commit89c8b298f0ae707a186b988dd079488f812adae0 (patch)
tree13f040c0d73f44e2fceb698666f340d1cd52aee1 /include
parentf9dd31ca8ec96c2c315a9f8011d4f1ed5b73b0a4 (diff)
downloadmariadb-git-89c8b298f0ae707a186b988dd079488f812adae0.tar.gz
Bug#17368 General log and slow query log don't work
- Port ha_tina.cc to run on windows include/my_sys.h: Add define for MAP_PRIVATE, to be used in my_mmap to decide what kind of map to open. mysys/my_mmap.c: Remove unused flProtect Look at "prot" argument when deciding if map should be read or write. storage/csv/ha_tina.cc: Remove "include <sys/mman.h>", use the defines and functions from mysys Add cast to byte* when calling 'my_write' Add cast to char* when calling 'buffer.set' munmap the file before setting it's size, my_chsize will fail if file is mapped. storage/csv/ha_tina.h: Remove "typedef" since no name is defined and "tina_set" is used in the code
Diffstat (limited to 'include')
-rw-r--r--include/my_sys.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/my_sys.h b/include/my_sys.h
index 2df8dbc9e89..26bf31ae10d 100644
--- a/include/my_sys.h
+++ b/include/my_sys.h
@@ -850,6 +850,7 @@ my_bool my_gethwaddr(uchar *to);
#define PROT_WRITE 2
#define MAP_NORESERVE 0
#define MAP_SHARED 0x0001
+#define MAP_PRIVATE 0x0002
#define MAP_NOSYNC 0x0800
#define MAP_FAILED ((void *)-1)
#define MS_SYNC 0x0000