pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Probe for preadv/pwritev in a more macOS-friendly way.
2+ messages / 1 participants
[nested] [flat]

* pgsql: Probe for preadv/pwritev in a more macOS-friendly way.
@ 2021-07-12 23:17  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2021-07-12 23:17 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f014b1b9bb8eda4e82c1805969dbae2b07b7d54d

Modified Files
--------------
configure                   | 166 +++++++++++++++++++++++++++++++++++++-------
configure.ac                |  11 ++-
src/include/pg_config.h.in  |  14 ++--
src/include/port/pg_iovec.h |   4 +-
src/tools/msvc/Solution.pm  |   4 +-
5 files changed, 161 insertions(+), 38 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Probe for preadv/pwritev in a more macOS-friendly way.
@ 2021-07-12 23:17  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2021-07-12 23:17 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e75da4f1b6c63523021e550f1a92c67d2b8a92fb

Modified Files
--------------
configure                   | 166 +++++++++++++++++++++++++++++++++++++-------
configure.ac                |  11 ++-
src/include/pg_config.h.in  |  14 ++--
src/include/port/pg_iovec.h |   4 +-
src/tools/msvc/Solution.pm  |   4 +-
5 files changed, 161 insertions(+), 38 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2021-07-12 23:17 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-07-12 23:17 pgsql: Probe for preadv/pwritev in a more macOS-friendly way. Tom Lane <tgl@sss.pgh.pa.us>
2021-07-12 23:17 pgsql: Probe for preadv/pwritev in a more macOS-friendly way. Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox