aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-05-19 08:43:17 +0000
committerCorinna Vinschen <corinna@vinschen.de>2005-05-19 08:43:17 +0000
commit989ea1c99e17abbdff5fb4c049ebd30d321895da (patch)
treec611d2b2eb9a538e6a8b0e27c3bef4cedc168ea4
parent4390dc9df5a1b27806bc3dad7f72686088ce950c (diff)
downloadnewlib-989ea1c99e17abbdff5fb4c049ebd30d321895da.zip
newlib-989ea1c99e17abbdff5fb4c049ebd30d321895da.tar.gz
newlib-989ea1c99e17abbdff5fb4c049ebd30d321895da.tar.bz2
* mmap.cc (mmap64): Make granularity an automatic variable.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/mmap.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index e61c43f..a0c7fb4 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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.
diff --git a/winsup/cygwin/mmap.cc b/winsup/cygwin/mmap.cc
index ec4e3c2..a3c5f13 100644
--- a/winsup/cygwin/mmap.cc
+++ b/winsup/cygwin/mmap.cc
@@ -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 ()