AC_FUNC_MMAP not testing what the comments say

2023-12-15 Thread Brooks Davis
Prior to 19629fa9fcb209d60012a75ba087a295d4b3c734, AC_FUNC_MMAP malloc'd some memory and then mmap'd a page in it to test mapping over an entry. That commit changed the code to use mmap'd memory instead of malloc'd memory to support cygwin. Unfortunatly, the code also munmapped the memory before c

Re: AC_FUNC_MMAP not testing what the comments say

2023-12-15 Thread Paul Eggert
Thanks for the diagnosis. Proposed patch attached. I haven't installed it on Savannah, as Autoconf is currently in a prerelease freeze and Zack wants a look-see at all patches before they go in.From 0845c59400378f3441686cbcde48b49fce638f97 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 15