diff options
| author | Bruce Momjian | 2005-03-17 17:28:59 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2005-03-17 17:28:59 +0000 |
| commit | 7911e3a081ecebc116501da46806e32fa1a1c40a (patch) | |
| tree | 364afc5717f218a34fbad9adadae74b7110d6329 /src/include | |
| 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')
| -rw-r--r-- | src/include/port.h | 5 | ||||
| -rw-r--r-- | src/include/port/win32.h | 10 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/include/port.h b/src/include/port.h index 54984fe437c..6e5443294e9 100644 --- a/src/include/port.h +++ b/src/include/port.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/port.h,v 1.69 2005/01/06 00:59:25 tgl Exp $ + * $PostgreSQL: pgsql/src/include/port.h,v 1.69.4.1 2005/03/17 17:28:58 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -174,7 +174,8 @@ extern bool rmtree(char *path, bool rmtopdir); #if defined(WIN32) && !defined(__CYGWIN__) -/* open() replacement to allow delete of held files */ +/* open() replacement to allow delete of held files and passing + * of special options. */ #ifndef WIN32_CLIENT_ONLY extern int win32_open(const char *, int,...); 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 |
