From 960af486d29fb1c233c5cd92e1d6dc029daeb7af Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Wed, 31 Mar 2010 14:07:39 -0700 Subject: [PATCH] Fix build of mmap64. --- ChangeLog | 5 +++++ sysdeps/unix/sysv/linux/mmap64.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 55b4d843f3..dafce4dc80 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-03-30 David S. Miller + + * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Fix + MMAP2_PAGE_SHIFT test. + 2010-03-29 Ulrich Drepper * 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 (); -- 2.11.4.GIT