Re: macOS 15.4 versus strchrnul()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: macOS 15.4 versus strchrnul()
Date: 2025-04-01 19:25:59
Message-ID: 407464.1743535559@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter(at)eisentraut(dot)org> writes:
> On 01.04.25 17:57, Tom Lane wrote:
>> I speculate that the meson test for preadv/pwritev has never worked
>> for macOS either, and we haven't noticed because nobody has tried to
>> build with meson on a machine with low enough default deployment
>> target to not have preadv/pwritev.

> Agreed. Attached is a patch that implements the test more along the
> lines of how Autoconf does it. This gives correct results for me for
> strchrnul() in various configurations.

Cool. Let me try it here, and I'll push if no problems arise.

> Btw., I see on the buildfarm that strchrnul() is also available on
> FreeBSD, DragonFly BSD, NetBSD, and musl (Alpine Linux). So perhaps
> some of the comments ought to be rewritten away from that it's a
> glibc-specific extension.

OK, will do something about that --- maybe like "originally glibc
specific, but later adopted by other platforms"?

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dmitry Dolgov 2025-04-01 19:27:23 Re: System views for versions reporting
Previous Message Alena Rybakina 2025-04-01 19:08:26 Re: Adding skip scan (including MDAM style range skip scan) to nbtree