* mmap.cc (mmap64): Make granularity an automatic variable.
This commit is contained in:
@@ -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 ()
|
||||
|
Reference in New Issue
Block a user