From: Bram Moolenaar Date: Mon, 22 Mar 2021 15:45:35 +0000 (+0100) Subject: patch 8.2.2639: build failure when fsync() is not available X-Git-Tag: v8.2.2639 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ea79a2599d35f75e1ae8a75d2711c754c4cb7c4;p=vim patch 8.2.2639: build failure when fsync() is not available Problem: Build failure when fsync() is not available. Solution: Add #ifdef. --- diff --git a/src/ui.c b/src/ui.c index 6c1c1de02..a42393732 100644 --- a/src/ui.c +++ b/src/ui.c @@ -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) diff --git a/src/version.c b/src/version.c index 40411d8be..e2519f4d4 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2639, /**/ 2638, /**/