filesink: Fix Windows build by using _commit instead of fsync.

This commit is contained in:
Jan Schmidt 2015-06-09 00:52:34 +10:00
parent 5ba9e9d9a8
commit ef2a4083af

View file

@ -60,6 +60,8 @@
#define ftruncate _chsize #define ftruncate _chsize
#ifdef _MSC_VER /* Check if we are using MSVC, fileno is deprecated in favour */ #ifdef _MSC_VER /* Check if we are using MSVC, fileno is deprecated in favour */
#define fileno _fileno /* of _fileno */ #define fileno _fileno /* of _fileno */
#undef fsync
#define fsync _commit
#endif #endif
#endif #endif