diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2026-01-09 14:57:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-09 14:57:57 +0100 |
| commit | da4fb28fca51b180d50608b0c847b1c0927cd8c5 (patch) | |
| tree | d20769e0a61ac2ba76920190050d3e0a3e7c85b7 /gl/m4/memchr.m4 | |
| parent | b09a8b530df8a23610889d0b89b148f22db3568a (diff) | |
| parent | f694f4cd4dfead0da6feab04d92335d9bbe185b6 (diff) | |
| download | monitoring-plugins-da4fb28f.tar.gz | |
Merge branch 'master' into refactor/check_ide_smart
Diffstat (limited to 'gl/m4/memchr.m4')
| -rw-r--r-- | gl/m4/memchr.m4 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gl/m4/memchr.m4 b/gl/m4/memchr.m4 index 346a2882..1c2ecf1d 100644 --- a/gl/m4/memchr.m4 +++ b/gl/m4/memchr.m4 | |||
| @@ -1,9 +1,10 @@ | |||
| 1 | # memchr.m4 | 1 | # memchr.m4 |
| 2 | # serial 19 | 2 | # serial 20 |
| 3 | dnl Copyright (C) 2002-2004, 2009-2024 Free Software Foundation, Inc. | 3 | dnl Copyright (C) 2002-2004, 2009-2025 Free Software Foundation, Inc. |
| 4 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 5 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 6 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
| 7 | dnl This file is offered as-is, without any warranty. | ||
| 7 | 8 | ||
| 8 | AC_DEFUN_ONCE([gl_FUNC_MEMCHR], | 9 | AC_DEFUN_ONCE([gl_FUNC_MEMCHR], |
| 9 | [ | 10 | [ |
| @@ -49,7 +50,7 @@ AC_DEFUN_ONCE([gl_FUNC_MEMCHR], | |||
| 49 | if (fd >= 0) | 50 | if (fd >= 0) |
| 50 | # endif | 51 | # endif |
| 51 | { | 52 | { |
| 52 | int pagesize = getpagesize (); | 53 | long int pagesize = sysconf (_SC_PAGESIZE); |
| 53 | char *two_pages = | 54 | char *two_pages = |
| 54 | (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, | 55 | (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, |
| 55 | flags, fd, 0); | 56 | flags, fd, 0); |
