diff options
author | serg@serg.mylan <> | 2005-03-02 15:29:46 +0100 |
---|---|---|
committer | serg@serg.mylan <> | 2005-03-02 15:29:46 +0100 |
commit | 60e1c869f580da4c9d321d5984209220e065dfda (patch) | |
tree | 7ecf94ccad08edf0ab0ab533b694636d2ddccf2b /mysys/my_mmap.c | |
parent | 7535886f1ca85b7f4b602989791fe9e8baf37d4d (diff) | |
download | mariadb-git-60e1c869f580da4c9d321d5984209220e065dfda.tar.gz |
workaround for a bug removed
Diffstat (limited to 'mysys/my_mmap.c')
-rw-r--r-- | mysys/my_mmap.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/mysys/my_mmap.c b/mysys/my_mmap.c index 98243c9d5d8..a111c3dc571 100644 --- a/mysys/my_mmap.c +++ b/mysys/my_mmap.c @@ -28,8 +28,7 @@ int my_msync(int fd, void *addr, size_t len, int flags) return my_sync(fd, MYF(0)); } -#else -#ifdef __WIN__ +#elif defined(__WIN__) static SECURITY_ATTRIBUTES mmap_security_attributes= {sizeof(SECURITY_ATTRIBUTES), 0, TRUE}; @@ -83,11 +82,7 @@ int my_msync(int fd, void *addr, size_t len, int flags) return FlushViewOfFile(addr, len) ? 0 : -1; } -#endif - -#ifndef __WIN__ +#else #warning "no mmap!" #endif -#endif - |