patch 8.2.0009: VMS: terminal version doesn't build

Problem:    VMS: terminal version doesn't build.
Solution:   Move MIN definition.  Adjust #ifdefs. (Zoltan Arpadffy)
diff --git a/src/ui.c b/src/ui.c
index 6359571..f4f7bcf 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -247,7 +247,7 @@
     return retval;
 }
 
-#if defined(UNIX) || defined(FEAT_GUI) || defined(PROTO)
+#if defined(UNIX) || defined(VMS) || defined(FEAT_GUI) || defined(PROTO)
 /*
  * Common code for mch_inchar() and gui_inchar(): Wait for a while or
  * indefinitely until characters are available, dealing with timers and