diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-09-22 11:48:13 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-09-22 11:48:13 -0600 |
commit | 1ed004d77f6ee05199cacf0c6e17c41edda981bf (patch) | |
tree | 6ead9eb4adf59bc3755fe8c5ff0f6c359ac2e565 /boltsync_unix.go | |
parent | Merge pull request #254 from benbjohnson/caveat-rss (diff) | |
parent | Rework build to support more liberal unix variants. (diff) | |
download | dedo-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.go | 14 |
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() +} |