Re: macOS 15.4 versus strchrnul()

2025-04-01 Thread Peter Eisentraut
On 01.04.25 17:57, Tom Lane wrote: That is, the function exists now in macOS' libc, and so configure's does-it-link test for HAVE_STRCHRNUL finds it, but will not let you use it unless you monkey around with export MACOSX_DEPLOYMENT_TARGET=15.4 or similar. I don't think we want to require peo

Re: macOS 15.4 versus strchrnul()

2025-04-01 Thread Tom Lane
Peter Eisentraut 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 pre

macOS 15.4 versus strchrnul()

2025-04-01 Thread Tom Lane
Last night I updated the machine that hosts sifaka and indri to spankin' new macOS Sequoia 15.4, and that promptly broke the build on both animals: snprintf.c:350:1: error: static declaration of 'strchrnul' follows non-static declaration 350 | strchrnul(const char *s, int c) | ^ /Library/