aboutsummaryrefslogtreecommitdiff
path: root/src/include/port/win32.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2005-02-27 00:53:29 +0000
committerBruce Momjian <bruce@momjian.us>2005-02-27 00:53:29 +0000
commitafbc30e5d4e305a577006582dd3650cf8f9c371f (patch)
tree0705cd02f68c3ea1c19677e004e8d0991196d674 /src/include/port/win32.h
parent234d50812c8b4d23bc51e9ae98b269073027d69a (diff)
downloadpostgresql-afbc30e5d4e305a577006582dd3650cf8f9c371f.tar.gz
postgresql-afbc30e5d4e305a577006582dd3650cf8f9c371f.zip
Allow Win32 to support the O_SYNC open flag as an wal_sync_method method.
Magnus Hagander
Diffstat (limited to 'src/include/port/win32.h')
-rw-r--r--src/include/port/win32.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/include/port/win32.h b/src/include/port/win32.h
index 9049fb4327f..c3c7da737bc 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.43 2005/02/27 00:53:29 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