]> granicus.if.org Git - vim/commitdiff
patch 8.2.2639: build failure when fsync() is not available v8.2.2639
authorBram Moolenaar <Bram@vim.org>
Mon, 22 Mar 2021 15:45:35 +0000 (16:45 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 22 Mar 2021 15:45:35 +0000 (16:45 +0100)
Problem:    Build failure when fsync() is not available.
Solution:   Add #ifdef.

src/ui.c
src/version.c

index 6c1c1de0289a52f6dea887ba12a91e48bee0b1f4..a42393732fe7eed8aff6227986927646f0d2da1f 100644 (file)
--- 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)
index 40411d8be392435eae030736fddd94b39e7ab1c2..e2519f4d42d09ebacb86b6647a22d0f0a2267f05 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2639,
 /**/
     2638,
 /**/