summaryrefslogtreecommitdiff
path: root/src/include/port/darwin.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-01-17 23:52:31 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-01-17 23:52:31 +0000
commit558bc2584d7e79801acb8344b79838cd3511915b (patch)
treee1cb52137df9ea82b0bc9c85c80d68445b2763e4 /src/include/port/darwin.h
parentf3dda5be890dfdd6a3fae6ff21737307fcc6c0a8 (diff)
Fix fsync code to test whether F_FULLFSYNC is available, instead of
assuming it always is on Darwin. Per report from Neil Brandt.
Diffstat (limited to 'src/include/port/darwin.h')
-rw-r--r--src/include/port/darwin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/port/darwin.h b/src/include/port/darwin.h
index 2b7600bebeb..af4ce9b3856 100644
--- a/src/include/port/darwin.h
+++ b/src/include/port/darwin.h
@@ -1,3 +1,5 @@
#define __darwin__ 1
+#if HAVE_DECL_F_FULLFSYNC /* not present before OS X 10.3 */
#define HAVE_FSYNC_WRITETHROUGH
+#endif