1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Move our p{read,write}v replacements into their own files.

macOS's ranlib issued a warning about an empty pread.o file with the
previous arrangement, on systems new enough to require no replacement
functions.  Let's go back to using configure's AC_REPLACE_FUNCS system
to build and include each .o in the library only if it's needed, which
requires moving the *v() functions to their own files.

Also move the _with_retry() wrapper to a more permanent home.

Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/1283127.1610554395%40sss.pgh.pa.us
This commit is contained in:
Thomas Munro
2021-01-14 11:10:24 +13:00
parent 5a6f9bce8d
commit 0d56acfbaa
10 changed files with 248 additions and 154 deletions

View File

@ -1661,12 +1661,8 @@ AC_CHECK_FUNCS(m4_normalize([
poll
posix_fallocate
ppoll
pread
preadv
pstat
pthread_is_threaded_np
pwrite
pwritev
readlink
readv
setproctitle
@ -1740,6 +1736,10 @@ AC_REPLACE_FUNCS(m4_normalize([
inet_aton
link
mkdtemp
pread
preadv
pwrite
pwritev
random
srandom
strlcat