mirror of https://github.com/postgres/postgres
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.compull/100/head
parent
623cc67347
commit
d2e150831a
@ -1,12 +1,12 @@ |
|||||||
/*-------------------------------------------------------------------------
|
/*-------------------------------------------------------------------------
|
||||||
* |
* |
||||||
* fdatasync.c |
* win32fdatasync.c |
||||||
* Win32 fdatasync() replacement |
* Win32 fdatasync() replacement |
||||||
* |
* |
||||||
* |
* |
||||||
* Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group |
* Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group |
||||||
* |
* |
||||||
* src/port/fdatasync.c |
* src/port/win32fdatasync.c |
||||||
* |
* |
||||||
*------------------------------------------------------------------------- |
*------------------------------------------------------------------------- |
||||||
*/ |
*/ |
Loading…
Reference in new issue