0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.2639: build failure when fsync() is not available

Problem:    Build failure when fsync() is not available.
Solution:   Add #ifdef.
This commit is contained in:
Bram Moolenaar 2021-03-22 16:45:35 +01:00
parent 4c86830fc5
commit 5ea79a2599
2 changed files with 5 additions and 1 deletions

View File

@ -50,8 +50,10 @@ ui_write(char_u *s, int len, int console UNUSED)
# endif
mch_write(s, len);
# if defined(HAVE_FSYNC)
if (console && s[len - 1] == '\n')
fsync(1);
vim_fsync(1);
# endif
# if !defined(MSWIN)
if (output_conv.vc_type != CONV_NONE)

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2639,
/**/
2638,
/**/