Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 04cad8f

Browse files
committed
Adjust commit 2dbe890 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).
1 parent d121663 commit 04cad8f

File tree

1 file changed

+5
-0
lines changed
  • src/backend/storage/file

1 file changed

+5
-0
lines changed

src/backend/storage/file/fd.c

+5
Original file line numberDiff line numberDiff line change
@@ -1065,9 +1065,14 @@ BasicOpenFilePerm(const char *fileName, int fileFlags, mode_t fileMode)
10651065
*/
10661066
StaticAssertStmt((PG_O_DIRECT &
10671067
(O_APPEND |
1068+
#if defined(O_CLOEXEC)
10681069
O_CLOEXEC |
1070+
#endif
10691071
O_CREAT |
1072+
#if defined(O_DSYNC)
10701073
O_DSYNC |
1074+
#endif
1075+
O_EXCL |
10711076
O_RDWR |
10721077
O_RDONLY |
10731078
O_SYNC |

0 commit comments

Comments
 (0)