summaryrefslogtreecommitdiff
path: root/src/if_sniff.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-08-25 19:49:50 +0200
committerBram Moolenaar <Bram@vim.org>2015-08-25 19:49:50 +0200
commit80ce282107849ef1a0e9b8a3be26c59c211b0957 (patch)
tree824d505fa11897f096c8aec79eae9e1f1583c82f /src/if_sniff.c
parent0a38dd29d6f65aa601162542a5ab0ba7f308fc8e (diff)
downloadvim-80ce282107849ef1a0e9b8a3be26c59c211b0957.zip
patch 7.4.837
Problem: Compiler warning with MSVC compiler when using +sniff. Solution: Use Sleep() instead of _sleep(). (Tux)
Diffstat (limited to 'src/if_sniff.c')
-rw-r--r--src/if_sniff.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/if_sniff.c b/src/if_sniff.c
index 5cacb72f6..bfdc68bfa 100644
--- a/src/if_sniff.c
+++ b/src/if_sniff.c
@@ -655,7 +655,11 @@ sniff_disconnect(immediately)
else
{
#ifdef WIN32
+# if (defined(_MSC_VER) && _MSC_VER >= 1400)
+ Sleep(2);
+# else
_sleep(2);
+# endif
if (!sniff_request_processed)
ProcessSniffRequests();
#else