diff options
author | Bruce Momjian <bruce@momjian.us> | 2005-06-16 17:53:54 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2005-06-16 17:53:54 +0000 |
commit | 26cbccd52ced1bd4489d9f0713b4fc0c55bea1e4 (patch) | |
tree | 0797e44062f68c8535d95f859c6060b73d1e7416 | |
parent | e046b3ddd7336aa1e6482c54dcd6b8df487f0f86 (diff) | |
download | postgresql-26cbccd52ced1bd4489d9f0713b4fc0c55bea1e4.tar.gz postgresql-26cbccd52ced1bd4489d9f0713b4fc0c55bea1e4.zip |
Add fsync() define for Win32 to cover cases other than wal_sync_method
where we need fsync().
-rw-r--r-- | src/include/port/win32.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/include/port/win32.h b/src/include/port/win32.h index c551b78ebdf..1617bc104da 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.45 2005/05/20 14:53:26 momjian Exp $ */ +/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.46 2005/06/16 17:53:54 momjian Exp $ */ /* undefine and redefine after #include */ #undef mkdir @@ -19,6 +19,11 @@ #define HAVE_FSYNC_WRITETHROUGH #define HAVE_FSYNC_WRITETHROUGH_ONLY #define ftruncate(a,b) chsize(a,b) +/* + * Even though we don't support 'fsync' as a wal_sync_method, + * we do fsync() a few other places where _commit() is just fine. + */ +#define fsync(fd) _commit(fd) #define USES_WINSOCK |