aboutsummaryrefslogtreecommitdiff
path: root/boltsync_unix.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-09-22 11:48:13 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-09-22 11:48:13 -0600
commit1ed004d77f6ee05199cacf0c6e17c41edda981bf (patch)
tree6ead9eb4adf59bc3755fe8c5ff0f6c359ac2e565 /boltsync_unix.go
parentMerge pull request #254 from benbjohnson/caveat-rss (diff)
parentRework build to support more liberal unix variants. (diff)
downloaddedo-1ed004d77f6ee05199cacf0c6e17c41edda981bf.tar.gz
dedo-1ed004d77f6ee05199cacf0c6e17c41edda981bf.tar.xz
Merge pull request #258 from davecgh/davec_build
Rework build to support more liberal unix variants.
Diffstat (limited to 'boltsync_unix.go')
-rw-r--r--boltsync_unix.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/boltsync_unix.go b/boltsync_unix.go
new file mode 100644
index 0000000..3c54dd5
--- /dev/null
+++ b/boltsync_unix.go
@@ -0,0 +1,14 @@
+// +build !windows,!plan9,!linux
+
+package bolt
+
+import (
+ "os"
+)
+
+var odirect int
+
+// fdatasync flushes written data to a file descriptor.
+func fdatasync(f *os.File) error {
+ return f.Sync()
+}