# HG changeset patch # User mas01cr # Date 1250026927 0 # Node ID 638e1647b1993ec73aac9855fb79aac20a668cb3 # Parent 08811763ccfa697050d0398daa2ef713d2cf8d36 Use _commit() to emulate fsync() fsync() itself is used to emulate fdatasync(). Round and round we go. diff -r 08811763ccfa -r 638e1647b199 audioDB-internals.h --- a/audioDB-internals.h Tue Aug 11 21:42:01 2009 +0000 +++ b/audioDB-internals.h Tue Aug 11 21:42:07 2009 +0000 @@ -182,7 +182,9 @@ goto error; } -#if defined(_POSIX_SYNCHRONIZED_IO) && (_POSIX_SYNCHRONIZED_IO > 0) +#if defined(WIN32) + _commit(adb->fd); +#elif defined(_POSIX_SYNCHRONIZED_IO) && (_POSIX_SYNCHRONIZED_IO > 0) fdatasync(adb->fd); #else fsync(adb->fd);