- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit6da2ba1
Fix detection and handling of strchrnul() for macOS 15.4.
As of 15.4, macOS has strchrnul(), but access to it is blocked behinda check for MACOSX_DEPLOYMENT_TARGET >= 15.4. But our does-it-linkconfigure check finds it, so we try to use it, and fail with thepresent default deployment target (namely 15.0). This accounts fortoday's buildfarm failures on indri and sifaka.This is the identical problem that we faced some years ago when Appleintroduced preadv and pwritev in the same way. We solved that incommitf014b1b by using AC_CHECK_DECLS instead of AC_CHECK_FUNCSto check the functions' availability. So do the same now forstrchrnul(). Interestingly, we already had a workaround for"the link check doesn't agree with <string.h>" cases with glibc,which we no longer need since only the header declaration is beingchecked.Testing this revealed that the meson version of this check has neverworked, because it failed to use "-Werror=unguarded-availability-new".(Apparently nobody's tried to build with meson on macOS versions thatlack preadv/pwritev as standard.) Adjust that while at it. Also,we had never put support for "-Werror=unguarded-availability-new"into v13, but we need that now.Co-authored-by: Tom Lane <tgl@sss.pgh.pa.us>Co-authored-by: Peter Eisentraut <peter@eisentraut.org>Discussion:https://postgr.es/m/385134.1743523038@sss.pgh.pa.usBackpatch-through: 131 parentc313fa4 commit6da2ba1
File tree
5 files changed
+49
-24
lines changed- src
- include
- port
5 files changed
+49
-24
lines changedLines changed: 13 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15401 | 15401 |
| |
15402 | 15402 |
| |
15403 | 15403 |
| |
15404 |
| - | |
| 15404 | + | |
15405 | 15405 |
| |
15406 | 15406 |
| |
15407 | 15407 |
| |
| |||
15955 | 15955 |
| |
15956 | 15956 |
| |
15957 | 15957 |
| |
| 15958 | + | |
| 15959 | + | |
| 15960 | + | |
| 15961 | + | |
| 15962 | + | |
| 15963 | + | |
| 15964 | + | |
| 15965 | + | |
| 15966 | + | |
| 15967 | + | |
| 15968 | + | |
| 15969 | + | |
15958 | 15970 |
| |
15959 | 15971 |
| |
15960 | 15972 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1772 | 1772 |
| |
1773 | 1773 |
| |
1774 | 1774 |
| |
1775 |
| - | |
1776 | 1775 |
| |
1777 | 1776 |
| |
1778 | 1777 |
| |
| |||
1812 | 1811 |
| |
1813 | 1812 |
| |
1814 | 1813 |
| |
| 1814 | + | |
1815 | 1815 |
| |
1816 | 1816 |
| |
1817 | 1817 |
| |
|
Lines changed: 18 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2577 | 2577 |
| |
2578 | 2578 |
| |
2579 | 2579 |
| |
| 2580 | + | |
2580 | 2581 |
| |
2581 | 2582 |
| |
2582 | 2583 |
| |
| |||
2593 | 2594 |
| |
2594 | 2595 |
| |
2595 | 2596 |
| |
2596 |
| - | |
2597 |
| - | |
| 2597 | + | |
| 2598 | + | |
| 2599 | + | |
| 2600 | + | |
| 2601 | + | |
| 2602 | + | |
| 2603 | + | |
| 2604 | + | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
| 2608 | + | |
| 2609 | + | |
| 2610 | + | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
2598 | 2614 |
| |
2599 | 2615 |
| |
2600 | 2616 |
| |
| |||
2802 | 2818 |
| |
2803 | 2819 |
| |
2804 | 2820 |
| |
2805 |
| - | |
2806 | 2821 |
| |
2807 | 2822 |
| |
2808 | 2823 |
| |
|
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
103 | 103 |
| |
104 | 104 |
| |
105 | 105 |
| |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
106 | 110 |
| |
107 | 111 |
| |
108 | 112 |
| |
| |||
373 | 377 |
| |
374 | 378 |
| |
375 | 379 |
| |
376 |
| - | |
377 |
| - | |
378 |
| - | |
379 | 380 |
| |
380 | 381 |
| |
381 | 382 |
| |
|
Lines changed: 13 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
338 | 338 |
| |
339 | 339 |
| |
340 | 340 |
| |
341 |
| - | |
342 |
| - | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
343 | 344 |
| |
344 | 345 |
| |
345 | 346 |
| |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
346 | 353 |
| |
347 |
| - | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
348 | 357 |
| |
349 | 358 |
| |
350 | 359 |
| |
| |||
354 | 363 |
| |
355 | 364 |
| |
356 | 365 |
| |
357 |
| - | |
358 |
| - | |
359 |
| - | |
360 |
| - | |
361 |
| - | |
362 |
| - | |
363 |
| - | |
364 |
| - | |
365 |
| - | |
366 |
| - | |
367 |
| - | |
368 |
| - | |
369 |
| - | |
| 366 | + | |
370 | 367 |
| |
371 | 368 |
| |
372 | 369 |
| |
|
0 commit comments
Comments
(0)