* mmap.cc (mmap64): Make granularity an automatic variable.

This commit is contained in:
Corinna Vinschen 2005-05-19 08:43:17 +00:00
parent 4390dc9df5
commit 989ea1c99e
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-05-19 Corinna Vinschen <corinna@vinschen.de>
* mmap.cc (mmap64): Make granularity an automatic variable.
2005-05-19 Christopher Faylor <cgf@timesys.com>
* fhandler.h (fhandler_cygdrive::seekdir): Delete declaration.

View File

@ -506,7 +506,7 @@ mmap64 (void *addr, size_t len, int prot, int flags, int fd, _off64_t off)
syscall_printf ("addr %x, len %u, prot %x, flags %x, fd %d, off %D",
addr, len, prot, flags, fd, off);
static DWORD granularity = getshmlba ();
DWORD granularity = getshmlba ();
/* Error conditions according to SUSv2 */
if (off % getpagesize ()