summaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-02-20 20:37:01 +0100
committerBram Moolenaar <Bram@vim.org>2019-02-20 20:37:01 +0100
commit35856718881834a76225530d502c68fdec6584cf (patch)
tree8a067e0923d41111864eff03612e4719851ac51d /src/fileio.c
parentb9ddda6c2d98d99c09d58145c1b5b4042a8fd92c (diff)
patch 8.1.0957: Mac: fsync fails on network sharev8.1.0957
Problem: Mac: fsync fails on network share. Solution: Check for ENOTSUP. (Yee Cheng Chin, closes #4016)
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 841de1cf01..ab2c3fd01d 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -5135,7 +5135,7 @@ vim_fsync(int fd)
# ifdef MACOS_X
r = fcntl(fd, F_FULLFSYNC);
- if (r != 0 && errno == ENOTTY)
+ if (r != 0 && (errno == ENOTTY || errno == ENOTSUP))
# endif
r = fsync(fd);
return r;