On platforms without os.fdatasync (eg. OS-X), use fcntl.F_FULLFSYNC instead
Merge pull request #2 from pjkundert/fix-fdatasync

On platforms without os.fdatasync (eg. OS-X), use fcntl.F_FULLFSYNC instead