]> granicus.if.org Git - vim/commitdiff
patch 8.0.1166: :terminal doesn't work on Mac High Sierra v8.0.1166
authorBram Moolenaar <Bram@vim.org>
Sat, 30 Sep 2017 18:04:36 +0000 (20:04 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 30 Sep 2017 18:04:36 +0000 (20:04 +0200)
Problem:    :terminal doesn't work on Mac High Sierra.
Solution:   Change #ifdef for OpenPTY(). (Ozaki Kiichi, Kazunobu Kuriyama,
            closes #2162)

src/pty.c
src/version.c

index 9b03612227417e97b0e4be0c06d30c70db59c63b..151a2780f77d60e1e8b6bc16f5c061195b9dace9 100644 (file)
--- a/src/pty.c
+++ b/src/pty.c
@@ -267,10 +267,11 @@ OpenPTY(char **ttyn)
 }
 #endif
 
-#if defined(HAVE_SVR4_PTYS) && !defined(PTY_DONE) && !defined(hpux) && !defined(MACOS_X)
+#if defined(HAVE_SVR4_PTYS) && !defined(PTY_DONE) && !defined(hpux) \
+                    && !(defined(MACOS_X) && !defined(MAC_OS_X_VERSION_10_6))
 
 /* NOTE: Even though HPUX can have /dev/ptmx, the code below doesn't work!
- * Same for Mac OS X Leopard. */
+ * Same for Mac OS X Leopard (10.5). */
 #define PTY_DONE
     int
 OpenPTY(char **ttyn)
index b28cd91a6db61bee0089d437310337373b0ee4fd..f02ebe0e5d3e2ec667b13e0140557c8c8f2421b5 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1166,
 /**/
     1165,
 /**/