comparison src/pty.c @ 12576:b74f5036a434 v8.0.1166

patch 8.0.1166: :terminal doesn't work on Mac High Sierra commit https://github.com/vim/vim/commit/c958b316386fa44116a02bfbd5859edc54a4a7e0 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 30 20:04:36 2017 +0200 patch 8.0.1166: :terminal doesn't work on Mac High Sierra Problem: :terminal doesn't work on Mac High Sierra. Solution: Change #ifdef for OpenPTY(). (Ozaki Kiichi, Kazunobu Kuriyama, closes #2162)
author Christian Brabandt <cb@256bit.org>
date Sat, 30 Sep 2017 20:15:04 +0200
parents 7791a15353dc
children 351cf7c67bbe
comparison
equal deleted inserted replaced
12575:a4270d6de19a 12576:b74f5036a434
265 *ttyn = TtyName; 265 *ttyn = TtyName;
266 return f; 266 return f;
267 } 267 }
268 #endif 268 #endif
269 269
270 #if defined(HAVE_SVR4_PTYS) && !defined(PTY_DONE) && !defined(hpux) && !defined(MACOS_X) 270 #if defined(HAVE_SVR4_PTYS) && !defined(PTY_DONE) && !defined(hpux) \
271 && !(defined(MACOS_X) && !defined(MAC_OS_X_VERSION_10_6))
271 272
272 /* NOTE: Even though HPUX can have /dev/ptmx, the code below doesn't work! 273 /* NOTE: Even though HPUX can have /dev/ptmx, the code below doesn't work!
273 * Same for Mac OS X Leopard. */ 274 * Same for Mac OS X Leopard (10.5). */
274 #define PTY_DONE 275 #define PTY_DONE
275 int 276 int
276 OpenPTY(char **ttyn) 277 OpenPTY(char **ttyn)
277 { 278 {
278 int f; 279 int f;