summaryrefslogtreecommitdiff
path: root/libio/fileops.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-11-08 23:15:48 +0000
committerRoland McGrath <roland@gnu.org>2004-11-08 23:15:48 +0000
commiteaae7493d45e850931cb498227cacedb9cabb21d (patch)
tree916ce175f17eb871dd919f5727293c82220ebed1 /libio/fileops.c
parente40a38b383fdbc616eb110e7cd6f780d010783cc (diff)
downloadglibc-eaae7493d45e850931cb498227cacedb9cabb21d.tar.gz
2004-11-03 Marcus Brinkmann <marcus@gnu.org>
* sysdeps/gnu/_G_config.h (_G_HAVE_MREMAP): Define symbol. * sysdeps/mach/hurd/_G_config.h: New file. * libio/fileops.c (mmap_remap_check) [__linux__]: Replaced with [_G_HAVE_MREMAP].
Diffstat (limited to 'libio/fileops.c')
-rw-r--r--libio/fileops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/fileops.c b/libio/fileops.c
index 7d90cbaa2d..08eff0a08e 100644
--- a/libio/fileops.c
+++ b/libio/fileops.c
@@ -635,7 +635,7 @@ mmap_remap_check (_IO_FILE *fp)
{
/* The file added some pages. We need to remap it. */
void *p;
-#if defined __linux__ /* XXX */
+#ifdef _G_HAVE_MREMAP
p = __mremap (fp->_IO_buf_base, ROUNDED (fp->_IO_buf_end
- fp->_IO_buf_base),
ROUNDED (st.st_size), MREMAP_MAYMOVE);