diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-03-22 16:45:35 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-03-22 16:45:35 +0100 |
commit | 5ea79a2599d35f75e1ae8a75d2711c754c4cb7c4 (patch) | |
tree | 19baf43017771f8ad616e5f0747e2937b7b34b3b | |
parent | 4c86830fc578bcb47a51cf0983da5388cdbfe6cc (diff) | |
download | vim-git-5ea79a2599d35f75e1ae8a75d2711c754c4cb7c4.tar.gz |
patch 8.2.2639: build failure when fsync() is not availablev8.2.2639
Problem: Build failure when fsync() is not available.
Solution: Add #ifdef.
-rw-r--r-- | src/ui.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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 @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2639, +/**/ 2638, /**/ 2637, |