summaryrefslogtreecommitdiff
path: root/lib-src/movemail.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src/movemail.c')
-rw-r--r--lib-src/movemail.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib-src/movemail.c b/lib-src/movemail.c
index c971c9f2b11..283aca21c13 100644
--- a/lib-src/movemail.c
+++ b/lib-src/movemail.c
@@ -546,11 +546,13 @@ popmail (user, outfile)
* directories have lost mail when over quota because these checks were
* not made in previous versions of movemail. */
+#ifdef BSD
if (fsync (mbfi) < 0)
{
error ("Error in fsync: %s", strerror (errno));
return (1);
}
+#endif
if (close (mbfi) == -1)
{