{"thread":{"id":"33009","subject":"[PATCH 1/1] Add getpagesize() function detection to configure script","startedAt":"2013-02-25T18:34:30Z","lastAt":"2013-02-25T18:34:30Z","messageCount":1,"participants":["Mike Gorchak"],"isPatch":true,"patchVersion":1,"patchTotal":1},"messages":[{"id":"210264","messageId":"CAHXAxrMcmSZhs88OV7Ny0G+=W0qC-KfruCgogAi0_zBtch-Uvw@mail.gmail.com","threadId":"33009","inReplyTo":null,"subject":"[PATCH 1/1] Add getpagesize() function detection to configure script","fromName":"Mike Gorchak","fromEmail":"mike.gorchak.qnx@gmail.com","sentAt":"2013-02-25T18:34:30Z","receivedAt":"2013-02-25T18:34:30Z","isPatch":true,"sender":{"key":"mike.gorchak.qnx@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1337711?v=4"},"body":"Add detection of getpagesize() function in libc. Declare\nempty \"NO_GETPAGESIZE\" macro in case if getpagesize()\nexists and \"NO_GETPAGESIZE=YesPlease\" if no.\n\nSigned-off-by: Mike Gorchak <mike.gorchak.qnx@gmail.com>\n\n---\n configure.ac | 5 +++++\n 1 file changed, 5 insertions(+)\n\ndiff --git a/configure.ac b/configure.ac\nindex d0e82c1..3963429 100644\n--- a/configure.ac\n+++ b/configure.ac\n@@ -993,6 +993,11 @@ GIT_CHECK_FUNC(initgroups,\n [NO_INITGROUPS=YesPlease])\n GIT_CONF_SUBST([NO_INITGROUPS])\n #\n+# Define NO_GETPAGESIZE if you don't have getpagesize in the C library.\n+GIT_CHECK_FUNC(getpagesize,\n+[NO_GETPAGESIZE=],\n+[NO_GETPAGESIZE=YesPlease])\n+GIT_CONF_SUBST([NO_GETPAGESIZE])\n #\n # Define NO_MMAP if you want to avoid mmap.\n #\n-- \n1.8.2-rc0\n"}]}