aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2014-07-11 03:01:42 +0800
committerMilan Crha <mcrha@redhat.com>2014-07-11 03:01:42 +0800
commitfa3d3c2403a3fcdd7bd4b66cb2acb7baf40ab231 (patch)
treef315f05c15fd4973a30f8dff1a29477ac8c2f803 /mail
parent1690e6760f23f95f245d4acde8c768ccdedfc3b8 (diff)
downloadgsoc2013-evolution-fa3d3c2403a3fcdd7bd4b66cb2acb7baf40ab231.tar
gsoc2013-evolution-fa3d3c2403a3fcdd7bd4b66cb2acb7baf40ab231.tar.gz
gsoc2013-evolution-fa3d3c2403a3fcdd7bd4b66cb2acb7baf40ab231.tar.bz2
gsoc2013-evolution-fa3d3c2403a3fcdd7bd4b66cb2acb7baf40ab231.tar.lz
gsoc2013-evolution-fa3d3c2403a3fcdd7bd4b66cb2acb7baf40ab231.tar.xz
gsoc2013-evolution-fa3d3c2403a3fcdd7bd4b66cb2acb7baf40ab231.tar.zst
gsoc2013-evolution-fa3d3c2403a3fcdd7bd4b66cb2acb7baf40ab231.zip
Bug 722068 - Make Evolution build under Win32
This also makes gnome-desktop an optional dependency, which can be avoided with --disable-gnome-desktop configure option.
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-migrate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mail/e-mail-migrate.c b/mail/e-mail-migrate.c
index bb88d3caf8..9554c4e5fe 100644
--- a/mail/e-mail-migrate.c
+++ b/mail/e-mail-migrate.c
@@ -138,8 +138,10 @@ cp (const gchar *src,
em_migrate_set_progress (((gdouble) total) / ((gdouble) st.st_size));
} while (total < st.st_size);
+ #ifndef G_OS_WIN32
if (fsync (writefd) == -1)
goto exception;
+ #endif
close (readfd);
if (close (writefd) == -1)