Re: AC_FUNC_MMAP lacks <unistd.h> include?

Matt Turner <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.bugs
Message-ID <CAEdQ38Gi9QwjM3QgMpWQ_b=WS6HtpmNe+tRzGDrgdTKg_3FKsg@mail.gmail.com>
On Thu, May 11, 2023 at 2:00 AM Paul Eggert <[email protected]> wrote:
>
> On 2023-05-10 21:06, Matt Turner wrote:
>
> > We're mmap'ing a 1-byte file, and since the pagesize on amd64 is 4096
> > bytes, only the first 4096 byte page (of two) is mapped. Accessing the
> > second page triggers the SIGBUS.
>
> Ouch, I misread that part of the test. Thanks for reporting that. I
> suppose we should go back to invoking getpagesize despite the hassle of
> configuring it. I installed the attached further patch; please give it a
> try.

That works. Thank you!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.