aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-util.c')
-rw-r--r--e-util/e-util.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/e-util/e-util.c b/e-util/e-util.c
index 5b7875293d..b2efe75f95 100644
--- a/e-util/e-util.c
+++ b/e-util/e-util.c
@@ -1276,34 +1276,3 @@ e_gettext (const char *msgid)
return dgettext (E_I18N_DOMAIN, msgid);
}
-
-#ifdef G_OS_WIN32
-
-int
-fsync (int fd)
-{
- int handle;
- struct stat st;
-
- handle = _get_osfhandle (fd);
- if (handle == -1)
- return -1;
-
- fstat (fd, &st);
-
- /* FlushFileBuffers() fails if called on a handle to the
- * console output. As we cannot know whether fd refers to the
- * console output or not, punt, and call FlushFileBuffers()
- * only for regular files and pipes.
- */
- if (!(S_ISREG (st.st_mode) || S_ISFIFO (st.st_mode)))
- return 0;
-
- if (FlushFileBuffers ((HANDLE) handle))
- return 0;
-
- errno = EIO;
- return -1;
-}
-
-#endif