summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2023-05-17 11:50:27 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2023-05-17 11:50:27 -0700
commit8e7281d7bebb5e389befe6e9a5afbb7b2ae13ae0 (patch)
treefffa938ea427817069cb58aa7a2a3a3f98801d00
parentccc0d640c4d829504568330f9674408af5092ffc (diff)
downloadautoconf-master.tar.gz
Improve AC_FUNC_MMAP commentsHEADmaster
* lib/autoconf/functions.m4 (AC_FUNC_MMAP): Add comment.
-rw-r--r--lib/autoconf/functions.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/autoconf/functions.m4 b/lib/autoconf/functions.m4
index 3d6e4aca..54d04cc3 100644
--- a/lib/autoconf/functions.m4
+++ b/lib/autoconf/functions.m4
@@ -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