mirror of
git://git.sv.gnu.org/autoconf
synced 2024-11-27 01:49:56 +08:00
Fix AC_FUNC_MMAP on CheriBSD
Problem reported by Brooks Davis in: https://lists.gnu.org/r/autoconf/2023-12/msg00022.html * lib/autoconf/functions.m4: Don’t unmap, since we want to test remapping something already mapped, and unmapping breaks on CheriBSD.
This commit is contained in:
parent
725652b0d8
commit
5d3f81d4b3
@ -1385,8 +1385,7 @@ main (void)
|
||||
if (*(data2 + i))
|
||||
return 7;
|
||||
close (fd2);
|
||||
if (munmap (data2, pagesize))
|
||||
return 8;
|
||||
/* 'return 8;' not currently used. */
|
||||
|
||||
/* Next, try to mmap the file at a fixed address which already has
|
||||
something else allocated at it. If we can, also make sure that
|
||||
|
Loading…
Reference in New Issue
Block a user