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:
parent
4c86830fc5
commit
5ea79a2599
4
src/ui.c
4
src/ui.c
@ -50,8 +50,10 @@ ui_write(char_u *s, int len, int console UNUSED)
|
|||||||
# endif
|
# endif
|
||||||
|
|
||||||
mch_write(s, len);
|
mch_write(s, len);
|
||||||
|
# if defined(HAVE_FSYNC)
|
||||||
if (console && s[len - 1] == '\n')
|
if (console && s[len - 1] == '\n')
|
||||||
fsync(1);
|
vim_fsync(1);
|
||||||
|
# endif
|
||||||
|
|
||||||
# if !defined(MSWIN)
|
# if !defined(MSWIN)
|
||||||
if (output_conv.vc_type != CONV_NONE)
|
if (output_conv.vc_type != CONV_NONE)
|
||||||
|
@ -750,6 +750,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 */
|
||||||
|
/**/
|
||||||
|
2639,
|
||||||
/**/
|
/**/
|
||||||
2638,
|
2638,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user