Re: macOS 15.4 versus strchrnul()
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2025-04-01T19:25:59Z
Lists: pgsql-hackers
Peter Eisentraut <peter@eisentraut.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
Commits
-
Fix detection and handling of strchrnul() for macOS 15.4.
- 6da2ba1d8a03 18.0 landed
- e4440a73c7ef 13.21 landed
- a39eb9c77faa 16.9 landed
- 915e88968034 17.5 landed
- 71790aef1a6e 14.18 landed
- 0de9560ba9b8 15.13 landed
-
Probe for preadv/pwritev in a more macOS-friendly way.
- f014b1b9bb8e 15.0 cited