diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-05-07 18:37:03 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-05-07 18:37:03 +0200 |
commit | b2d0e51366dea6843f991f31a457f5456d162678 (patch) | |
tree | c220d988cb585427bf0e4eae0fc648ec3d0524d5 /src/os_unix.h | |
parent | 4a070cc82e00618db279526797564cb2b4e9b060 (diff) | |
download | vim-git-b2d0e51366dea6843f991f31a457f5456d162678.tar.gz |
patch 8.2.0711: temp directory might be clearedv8.2.0711
Problem: With a long running Vim the temp directory might be cleared on
some systems.
Solution: Lock the temp directory. (closes #6044)
Diffstat (limited to 'src/os_unix.h')
-rw-r--r-- | src/os_unix.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os_unix.h b/src/os_unix.h index 485e05775..9b7337ac1 100644 --- a/src/os_unix.h +++ b/src/os_unix.h @@ -204,6 +204,10 @@ # endif #endif +#ifdef HAVE_FLOCK +# include <sys/file.h> +#endif + #endif // PROTO #ifdef VMS |