Skip to content

Commit 5ea79a2

Browse files
committed
patch 8.2.2639: build failure when fsync() is not available
Problem: Build failure when fsync() is not available. Solution: Add #ifdef.
1 parent 4c86830 commit 5ea79a2

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/ui.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ ui_write(char_u *s, int len, int console UNUSED)
5050
# endif
5151

5252
mch_write(s, len);
53+
# if defined(HAVE_FSYNC)
5354
if (console && s[len - 1] == '\n')
54-
fsync(1);
55+
vim_fsync(1);
56+
# endif
5557

5658
# if !defined(MSWIN)
5759
if (output_conv.vc_type != CONV_NONE)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2639,
753755
/**/
754756
2638,
755757
/**/

0 commit comments

Comments
 (0)