0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.1.0957: Mac: fsync fails on network share

Problem:    Mac: fsync fails on network share.
Solution:   Check for ENOTSUP. (Yee Cheng Chin, closes #4016)
This commit is contained in:
Bram Moolenaar
2019-02-20 20:37:01 +01:00
parent b9ddda6c2d
commit 3585671888
2 changed files with 3 additions and 1 deletions

View File

@@ -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;