mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
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].
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user