Fix port of AC_FUNC_MMAP
commit33c26d2700f927432c756ccf7a4fc89403d35b95
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 11 May 2023 05:57:27 +0000 (10 22:57 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 11 May 2023 05:58:21 +0000 (10 22:58 -0700)
tree9d4d64bf05e948b3e68451a5e1fa785e8ea761c9
parent028526149ee804617a302ccef22cc6adbda681b0
Fix port of AC_FUNC_MMAP

Problem reported by Matt Turner in:
https://lists.gnu.org/r/bug-autoconf/2023-05/msg00005.html
* lib/autoconf/functions.m4 (AC_FUNC_MMAP): Go back to getting the
page size, since the zero-fill test needs this after all.
However, prefer sysconf (_SC_PAGESIZE) or sysconf (_SC_PAGE_SIZE)
to getpagesize (), and use ‘long’ not ‘int’ to store the page size.
Also, declare getpagesize if it is used as a function.
lib/autoconf/functions.m4