summaryrefslogtreecommitdiffstats
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-04-23 20:46:16 +0200
committerBram Moolenaar <Bram@vim.org>2018-04-23 20:46:16 +0200
commit6537c421bb626ee92a2487a543e6287d33461bd0 (patch)
treec0003b0294f921ef3b6bd318bb897201358745d1 /src/vim.h
parenta4baf5b32519855bb176a7aa0e9397c137ca890a (diff)
patch 8.0.1749: VMS: 100% CPU use, redefining mch_open() failsv8.0.1749
Problem: VMS: 100% CPU use, redefining mch_open() and mch_fopen() fails. Solution: Do not wait indefinitely in RealWaitForChar(). (Neil Rieck) Do not redefine mch_open() and mch_fopen() on VMS. (Zoltan Arpadffy)
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vim.h b/src/vim.h
index 4b41857903..df396ec051 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -2154,8 +2154,9 @@ typedef enum {
# define number_width(x) 7
#endif
-/* This must come after including proto.h */
-#if !(defined(FEAT_MBYTE) && defined(WIN3264))
+/* This must come after including proto.h.
+ * For VMS this is defined in macros.h. */
+#if !(defined(FEAT_MBYTE) && defined(WIN3264)) && !defined(VMS)
# define mch_open(n, m, p) open((n), (m), (p))
# define mch_fopen(n, p) fopen((n), (p))
#endif