aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@schwinge.name>2012-05-10 15:17:40 -0700
committerRoland McGrath <roland@hack.frob.com>2012-05-10 15:57:26 -0700
commit8069478040336a7de3461be275432493cc7e4c91 (patch)
tree69a2486558385dcacd917aae398c37d72ae353c3
parent66cbbebcc616db8e221e81f7ecbb2c77701d031b (diff)
downloadtermbaud-8069478040336a7de3461be275432493cc7e4c91.tar.gz
termbaud-8069478040336a7de3461be275432493cc7e4c91.tar.xz
termbaud-8069478040336a7de3461be275432493cc7e4c91.zip
Hurd: mmap deficiencies
-rw-r--r--ChangeLog10
-rw-r--r--nss/makedb.c4
2 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index e52cd67f472..04f67f0dd92 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,12 @@
+2012-05-10 Thomas Schwinge <thomas@schwinge.name>
+
+ * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
+
2012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
- 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 <string.h>.
(__mkdir): When path is `/', just fail with EEXIST.
diff --git a/nss/makedb.c b/nss/makedb.c
index 5c073a7440c..5890c054f0f 100644
--- a/nss/makedb.c
+++ b/nss/makedb.c
@@ -48,6 +48,10 @@
# include <selinux/selinux.h>
#endif
+#ifndef MAP_POPULATE
+# define MAP_POPULATE 0
+#endif
+
#define PACKAGE _libc_intl_domainname
/* List of data bases. */