0
0
mirror of https://github.com/vim/vim.git synced 2025-10-06 05:44:14 -04:00

patch 8.0.0750: OpenPTY missing in non-GUI build

Problem:    OpenPTY missing in non-GUI build.
Solution:   Always include pty.c, add an #ifdef to skip over the contents.
This commit is contained in:
Bram Moolenaar
2017-07-22 20:53:21 +02:00
parent 816e7660e1
commit 6ed8069c79
3 changed files with 25 additions and 17 deletions

View File

@@ -43,6 +43,8 @@
#include "vim.h"
#if defined(FEAT_GUI) || defined(FEAT_TERMINAL)
#include <signal.h>
#ifdef __CYGWIN32__
@@ -414,3 +416,5 @@ OpenPTY(char **ttyn)
return -1;
}
#endif
#endif /* FEAT_GUI || FEAT_TERMINAL */