diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-19 21:20:53 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-19 21:20:53 +0100 |
commit | 81b9d0bd5c705815e903e671e81b0b05828efd9c (patch) | |
tree | 3e832c3269ad004ee414c81b5ddbd65ae93ad9d5 /src/vim.h | |
parent | bfd830d3e2dbd1e9b14c65625f18773074e6ac67 (diff) | |
download | vim-81b9d0bd5c705815e903e671e81b0b05828efd9c.zip |
patch 8.0.0492: a failing client-server request can make Vim hang
Problem: A failing client-server request can make Vim hang.
Solution: Add a timeout argument to functions that wait.
Diffstat (limited to 'src/vim.h')
-rw-r--r-- | src/vim.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2506,7 +2506,9 @@ typedef enum { # define ELAPSED_INIT(v) v = GetTickCount() # define ELAPSED_FUNC(v) elapsed(v) # define ELAPSED_TYPE DWORD - long elapsed(DWORD start_tick); +# ifndef PROTO + long elapsed(DWORD start_tick); +# endif # endif #endif |