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:
@@ -5135,7 +5135,7 @@ vim_fsync(int fd)
|
|||||||
|
|
||||||
# ifdef MACOS_X
|
# ifdef MACOS_X
|
||||||
r = fcntl(fd, F_FULLFSYNC);
|
r = fcntl(fd, F_FULLFSYNC);
|
||||||
if (r != 0 && errno == ENOTTY)
|
if (r != 0 && (errno == ENOTTY || errno == ENOTSUP))
|
||||||
# endif
|
# endif
|
||||||
r = fsync(fd);
|
r = fsync(fd);
|
||||||
return r;
|
return r;
|
||||||
|
@@ -779,6 +779,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
957,
|
||||||
/**/
|
/**/
|
||||||
956,
|
956,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user