# HG changeset patch # User Bram Moolenaar # Date 1616428803 -3600 # Node ID 1040b294bfd3c61bf0e36c96d46d56b2e407bff8 # Parent 2e1ba2b9a8c86a34d3f517560c74ffcb34da8505 patch 8.2.2639: build failure when fsync() is not available Commit: https://github.com/vim/vim/commit/5ea79a2599d35f75e1ae8a75d2711c754c4cb7c4 Author: Bram Moolenaar Date: Mon Mar 22 16:45:35 2021 +0100 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 --- a/src/ui.c +++ b/src/ui.c @@ -50,8 +50,10 @@ ui_write(char_u *s, int len, int console # 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 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2639, +/**/ 2638, /**/ 2637,