threads / patch / 33009

patchAdd getpagesize() function detection to configure script

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

## tl;dr

One message between Feb 25, 2013 and Feb 25, 2013. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Mike Gorchak· Feb 25, 2013, 18:34 UTC · lore

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(+)
Show changes to configure.ac +5 −0
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

← back to recent threads