diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-11-16 23:04:15 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-11-16 23:04:15 +0100 |
commit | 7567d0b115e332f61a9f390aaccdf7825b891227 (patch) | |
tree | e4ab87bf66391ca7243d819c768dc907cdd411da /src/globals.h | |
parent | d0480097177369a6ed91d47aba189ae647afcd68 (diff) | |
download | vim-git-7567d0b115e332f61a9f390aaccdf7825b891227.tar.gz |
patch 8.0.1305: writefile() never calls fsync()v8.0.1305
Problem: Writefile() never calls fsync().
Solution: Follow the 'fsync' option with override to enable or disable.
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h index 318363230..ae62710d5 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1449,6 +1449,9 @@ EXTERN char_u e_isadir2[] INIT(= N_("E17: \"%s\" is a directory")); #ifdef FEAT_LIBCALL EXTERN char_u e_libcall[] INIT(= N_("E364: Library call failed for \"%s()\"")); #endif +#ifdef HAVE_FSYNC +EXTERN char_u e_fsync[] INIT(= N_("E667: Fsync failed")); +#endif #if defined(DYNAMIC_PERL) \ || defined(DYNAMIC_PYTHON) || defined(DYNAMIC_PYTHON3) \ || defined(DYNAMIC_RUBY) \ |