[vlc-commits] WinCE: skip fsync() replacement

Pierre Ynard git at videolan.org
Wed Jun 22 01:22:59 CEST 2011


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Wed Jun 22 01:20:13 2011 +0200| [ea8940136223456cd295bb779a438d81d16c2484] | committer: Pierre Ynard

WinCE: skip fsync() replacement

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ea8940136223456cd295bb779a438d81d16c2484
---

 compat/fsync.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/compat/fsync.c b/compat/fsync.c
index 75656a7..1e3b0b8 100644
--- a/compat/fsync.c
+++ b/compat/fsync.c
@@ -28,7 +28,8 @@
 
 int fsync (int fd)
 {
-#ifdef WIN32
+#if defined(WIN32) && !defined(UNDER_CE)
+    /* WinCE can use FlushFileBuffers() but it operates on file handles */
     return _commit (fd);
 #else
 # warning fsync() not implemented!



More information about the vlc-commits mailing list