git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/1] Add getpagesize() function detection to configure script

From
Mike Gorchak <mike.gorchak.qnx@gmail.com>
Date
Feb 25, 2013, 18:34 UTC
Message-ID
<CAHXAxrMcmSZhs88OV7Ny0G+=W0qC-KfruCgogAi0_zBtch-Uvw@mail.gmail.com>

Add detection of getpagesize() function in libc. Declare empty "NO_GETPAGESIZE" macro in case if getpagesize() exists and "NO_GETPAGESIZE=YesPlease" if no.

Signed-off-by: Mike Gorchak <mike.gorchak.qnx@gmail.com>
---
 configure.ac | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/configure.ac b/configure.ac
index d0e82c1..3963429 100644
--- a/configure.ac
+++ b/configure.ac
@@ -993,6 +993,11 @@ GIT_CHECK_FUNC(initgroups,
 [NO_INITGROUPS=YesPlease])
 GIT_CONF_SUBST([NO_INITGROUPS])
 #
+# Define NO_GETPAGESIZE if you don't have getpagesize in the C library.
+GIT_CHECK_FUNC(getpagesize,
+[NO_GETPAGESIZE=],
+[NO_GETPAGESIZE=YesPlease])
+GIT_CONF_SUBST([NO_GETPAGESIZE])
 #
 # Define NO_MMAP if you want to avoid mmap.
 #
-- 
1.8.2-rc0
Message 1 of 1 in “Add getpagesize() function detection to configure script”
  1. 1/1 Add getpagesize() function detection to configure scriptMike Gorchak, Feb 25, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.