summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-03-31 14:07:39 -0700
committerUlrich Drepper <drepper@redhat.com>2010-03-31 14:07:39 -0700
commit960af486d29fb1c233c5cd92e1d6dc029daeb7af (patch)
treec217e782a5b3860020edcc3710f8c12c5293b39c
parent6d28d423b2e47ad3534fb8807f4b0f31c2c0fa9a (diff)
downloadglibc-960af486d29fb1c233c5cd92e1d6dc029daeb7af.tar.gz
glibc-960af486d29fb1c233c5cd92e1d6dc029daeb7af.tar.xz
glibc-960af486d29fb1c233c5cd92e1d6dc029daeb7af.zip
Fix build of mmap64.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/unix/sysv/linux/mmap64.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 55b4d843f3..dafce4dc80 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-30  David S. Miller  <davem@davemloft.net>
+
+	* sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Fix
+	MMAP2_PAGE_SHIFT test.
+
 2010-03-29  Ulrich Drepper  <drepper@redhat.com>
 
 	* sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_WAITFORONE.
diff --git a/sysdeps/unix/sysv/linux/mmap64.c b/sysdeps/unix/sysv/linux/mmap64.c
index 85c801d501..b24b3f0c8b 100644
--- a/sysdeps/unix/sysv/linux/mmap64.c
+++ b/sysdeps/unix/sysv/linux/mmap64.c
@@ -49,7 +49,7 @@ void *
 __mmap64 (void *addr, size_t len, int prot, int flags, int fd, off64_t offset)
 {
 #ifdef __NR_mmap2
-# ifdef MMAP2_PAGE_SHIFT == -1
+# if MMAP2_PAGE_SHIFT == -1
   if (page_shift == 0)
     {
       int page_size = getpagesize ();