From 8069478040336a7de3461be275432493cc7e4c91 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Thu, 10 May 2012 15:17:40 -0700 Subject: [PATCH] Hurd: mmap deficiencies --- ChangeLog | 10 +++++++--- nss/makedb.c | 4 ++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e52cd67f47..04f67f0dd9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,12 @@ +2012-05-10 Thomas Schwinge + + * nss/makedb.c (MAP_POPULATE): If not defined, define to zero. + 2012-05-10 Samuel Thibault - Fix mlock in all cases except non-readable pages. - * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ - instead of VM_PROT_ALL as parameter to __vm_wire function. + Fix mlock in all cases except non-readable pages. + * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ + instead of VM_PROT_ALL as parameter to __vm_wire function. * sysdeps/mach/hurd/mkdir.c: Include . (__mkdir): When path is `/', just fail with EEXIST. diff --git a/nss/makedb.c b/nss/makedb.c index 5c073a7440..5890c054f0 100644 --- a/nss/makedb.c +++ b/nss/makedb.c @@ -48,6 +48,10 @@ # include #endif +#ifndef MAP_POPULATE +# define MAP_POPULATE 0 +#endif + #define PACKAGE _libc_intl_domainname /* List of data bases. */