commit | b2d0e51366dea6843f991f31a457f5456d162678 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu May 07 18:37:03 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Thu May 07 18:37:03 2020 +0200 |
tree | c220d988cb585427bf0e4eae0fc648ec3d0524d5 | |
parent | 4a070cc82e00618db279526797564cb2b4e9b060 [diff] [blame] |
patch 8.2.0711: temp directory might be cleared Problem: With a long running Vim the temp directory might be cleared on some systems. Solution: Lock the temp directory. (closes #6044)
diff --git a/src/os_unix.h b/src/os_unix.h index 485e057..9b7337a 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