]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Improve AC_FUNC_MMAP comments
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 17 May 2023 18:50:27 +0000 (11:50 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 17 May 2023 18:50:27 +0000 (11:50 -0700)
* lib/autoconf/functions.m4 (AC_FUNC_MMAP): Add comment.

lib/autoconf/functions.m4

index 3d6e4aca8db0269ae6a1f48a5e53713003825363..54d04cc382432ecbba0c95d1b64b62b55fb43cf0 100644 (file)
@@ -1311,6 +1311,8 @@ AC_CACHE_CHECK([for working mmap], [ac_cv_func_mmap_fixed_mapped],
 #include <sys/mman.h>
 
 #ifndef getpagesize
+/* Prefer sysconf to the legacy getpagesize function, as getpagesize has
+   been removed from POSIX and is limited to page sizes that fit in 'int'.  */
 # ifdef _SC_PAGESIZE
 #  define getpagesize() sysconf (_SC_PAGESIZE)
 # elif defined _SC_PAGE_SIZE