aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/file/fd.c
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2021-07-19 16:29:17 +1200
committerThomas Munro <tmunro@postgresql.org>2021-07-19 16:50:21 +1200
commit04cad8f7bcd63fac567e49fd72e6df42b3b251a9 (patch)
tree9a2fba6bbb3080d673d7c1ee96f00f29d1c84fcc /src/backend/storage/file/fd.c
parentd1216635610a9855a8ec139e55cd852f67d5ee81 (diff)
downloadpostgresql-04cad8f7bcd63fac567e49fd72e6df42b3b251a9.tar.gz
postgresql-04cad8f7bcd63fac567e49fd72e6df42b3b251a9.zip
Adjust commit 2dbe8905 for ancient macOS.
A couple of open flags used in an assertion didn't exist in macOS 10.4. Per build farm animal prairiedog. Also add O_EXCL while here (there are a few more standard flags but they're not relevant and likely to be missing).
Diffstat (limited to 'src/backend/storage/file/fd.c')
-rw-r--r--src/backend/storage/file/fd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c
index 0792c08ce1b..abb054ad7f3 100644
--- a/src/backend/storage/file/fd.c
+++ b/src/backend/storage/file/fd.c
@@ -1065,9 +1065,14 @@ tryAgain:
*/
StaticAssertStmt((PG_O_DIRECT &
(O_APPEND |
+#if defined(O_CLOEXEC)
O_CLOEXEC |
+#endif
O_CREAT |
+#if defined(O_DSYNC)
O_DSYNC |
+#endif
+ O_EXCL |
O_RDWR |
O_RDONLY |
O_SYNC |