git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 623cc67) | patch
Remove configure probe for fdatasync.
Fri, 5 Aug 2022 04:10:05 +0000 (16:10 +1200)
Fri, 5 Aug 2022 04:37:38 +0000 (16:37 +1200)
commit d2e150831af85fd30742f551a497db6639d91d0b
Remove configure probe for fdatasync.

fdatasync() is in SUSv2, and all targeted Unix systems have it. We have
a replacement function for Windows.

We retain the probe for the function declaration, which allows us to
supply the mysteriously missing declaration for macOS, and also for
Windows. No need to keep a HAVE_FDATASYNC macro around.

Also rename src/port/fdatasync.c to win32fdatasync.c since it's only for
Windows.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CA+hUKGJ3LHeP9w5Fgzdr4G8AnEtJ=z=p6hGDEm4qYGEUX5B6fQ@mail.gmail.com
Discussion: https://postgr.es/m/CA%2BhUKGJZJVO%3DiX%2Beb-PXi2_XS9ZRqnn_4URh0NUQOwt6-_51xQ%40mail.gmail.com
12 files changed:
configure diff | blob | blame | history
configure.ac diff | blob | blame | history
src/backend/access/transam/xlog.c diff | blob | blame | history
src/backend/storage/file/fd.c diff | blob | blame | history
src/bin/pg_test_fsync/pg_test_fsync.c diff | blob | blame | history
src/include/access/xlogdefs.h diff | blob | blame | history
src/include/pg_config.h.in diff | blob | blame | history
src/include/port/freebsd.h diff | blob | blame | history
src/include/port/win32_port.h diff | blob | blame | history
src/port/win32fdatasync.c [moved from src/port/fdatasync.c with 88% similarity] diff | blob | blame | history
src/tools/msvc/Mkvcbuild.pm diff | blob | blame | history
src/tools/msvc/Solution.pm diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /