aboutsummaryrefslogtreecommitdiff
path: root/contrib/test_decoding/test_decoding.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-07-12 19:17:35 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2021-07-12 19:17:35 -0400
commitf014b1b9bb8eda4e82c1805969dbae2b07b7d54d (patch)
tree80a22f024a04430db95263846f34f3d57ee0f5b6 /contrib/test_decoding/test_decoding.c
parentf10f0ae420ee62400876ab34dca2c09c20dcd030 (diff)
downloadpostgresql-f014b1b9bb8eda4e82c1805969dbae2b07b7d54d.tar.gz
postgresql-f014b1b9bb8eda4e82c1805969dbae2b07b7d54d.zip
Probe for preadv/pwritev in a more macOS-friendly way.
Apple's mechanism for dealing with functions that are available in only some OS versions confuses AC_CHECK_FUNCS, and therefore AC_REPLACE_FUNCS. We can use AC_CHECK_DECLS instead, so long as we enable -Werror=unguarded-availability-new. This allows people compiling for macOS to control whether or not preadv/pwritev are used by setting MACOSX_DEPLOYMENT_TARGET, rather than supplying a back-rev SDK. (Of course, the latter still works, too.) James Hilliard Discussion: https://postgr.es/m/20210122193230.25295-1-james.hilliard1@gmail.com
Diffstat (limited to 'contrib/test_decoding/test_decoding.c')
0 files changed, 0 insertions, 0 deletions