summaryrefslogtreecommitdiffstats
path: root/src/globals.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-07 18:37:03 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-07 18:37:03 +0200
commitb2d0e51366dea6843f991f31a457f5456d162678 (patch)
treec220d988cb585427bf0e4eae0fc648ec3d0524d5 /src/globals.h
parent4a070cc82e00618db279526797564cb2b4e9b060 (diff)
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/globals.h')
-rw-r--r--src/globals.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h
index 9180befcb5..5dfb6ff3f1 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -758,6 +758,9 @@ EXTERN int ru_wid; // 'rulerfmt' width of ruler when non-zero
EXTERN int sc_col; // column for shown command
#ifdef TEMPDIRNAMES
+# if defined(UNIX) && defined(HAVE_FLOCK) && defined(HAVE_DIRFD)
+EXTERN DIR *vim_tempdir_dp INIT(= NULL); // File descriptor of temp dir
+# endif
EXTERN char_u *vim_tempdir INIT(= NULL); // Name of Vim's own temp dir.
// Ends in a slash.
#endif