diff src/vim.h @ 13754:0d199e59a988 v8.0.1749

patch 8.0.1749: VMS: 100% CPU use, redefining mch_open() fails commit https://github.com/vim/vim/commit/6537c421bb626ee92a2487a543e6287d33461bd0 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 23 20:46:16 2018 +0200 patch 8.0.1749: VMS: 100% CPU use, redefining mch_open() fails 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)
author Christian Brabandt <cb@256bit.org>
date Mon, 23 Apr 2018 21:00:07 +0200
parents ea4f2a8040b4
children 0e9b2971d7c3
line wrap: on
line diff
--- 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