From eaae7493d45e850931cb498227cacedb9cabb21d Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 8 Nov 2004 23:15:48 +0000 Subject: 2004-11-03 Marcus Brinkmann * 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]. --- libio/fileops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libio/fileops.c') 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); -- cgit v1.2.1