diff options
author | Bruce Momjian <bruce@momjian.us> | 2005-03-17 17:28:59 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2005-03-17 17:28:59 +0000 |
commit | 7911e3a081ecebc116501da46806e32fa1a1c40a (patch) | |
tree | 364afc5717f218a34fbad9adadae74b7110d6329 /src/include/port/win32.h | |
parent | 89ea098714e0df3bc35f9a69c291666e77cd84ff (diff) |
Backpatch to 8.0.X, already in HEAD:
Allow Win32 to support the O_SYNC open flag as an wal_sync_method
method.
Diffstat (limited to 'src/include/port/win32.h')
-rw-r--r-- | src/include/port/win32.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/include/port/win32.h b/src/include/port/win32.h index 9049fb4327f..f93058edc07 100644 --- a/src/include/port/win32.h +++ b/src/include/port/win32.h @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.42 2004/12/26 19:20:33 tgl Exp $ */ +/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.42.4.1 2005/03/17 17:28:59 momjian Exp $ */ /* undefine and redefine after #include */ #undef mkdir @@ -184,6 +184,14 @@ typedef int pid_t; #define lstat(path, sb) stat((path), (sb)) /* + * Supplement to <fcntl.h>. + * This is the same value as _O_NOINHERIT in the MS header file. This is + * to ensure that we don't collide with a future definition. It means + * we cannot use _O_NOINHERIT ourselves. + */ +#define O_SYNC 0x0080 + +/* * Supplement to <errno.h>. */ #undef EAGAIN |