summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-04-17 21:54:11 +0000
committerMike Frysinger <vapier@gentoo.org>2007-04-17 21:54:11 +0000
commit338053615c6e1504a290355c66e105826ae9e51f (patch)
treebfae7b9aed037b55304ce3cb2059c75975edd8b8 /utils
parentc9b4265653c0b77872fb40e029de396fe8efd6d3 (diff)
fix ld.so.cache handling on no-mmu setups
Diffstat (limited to 'utils')
-rw-r--r--utils/ldconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/ldconfig.c b/utils/ldconfig.c
index 30e5fdb7c..671561238 100644
--- a/utils/ldconfig.c
+++ b/utils/ldconfig.c
@@ -813,7 +813,7 @@ void cache_print(void)
if (stat(realcachefile, &st) || (fd = open(realcachefile, O_RDONLY))<0)
err(EXIT_FATAL,"can't read %s (%s)", cachefile, strerror(errno));
- if ((c = mmap(0,st.st_size, PROT_READ, MAP_SHARED ,fd, 0)) == (caddr_t)-1)
+ if ((c = mmap(0,st.st_size, PROT_READ, LDSO_CACHE_MMAP_FLAGS, fd, 0)) == (caddr_t)-1)
err(EXIT_FATAL,"can't map %s (%s)", cachefile, strerror(errno));
close(fd);