commit | 6ed8069c798827ec4448f37bf2795a08fc9cbd05 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Jul 22 20:53:21 2017 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Jul 22 20:53:21 2017 +0200 |
tree | ba152f57a9ebf4b25b0a8815dc92b758be3d9956 | |
parent | 816e7660e1efb918ad85b5c78d21b957d1bcad17 [diff] [blame] |
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.
diff --git a/src/pty.c b/src/pty.c index 20ab65b..a738ac1 100644 --- a/src/pty.c +++ b/src/pty.c
@@ -43,6 +43,8 @@ #include "vim.h" +#if defined(FEAT_GUI) || defined(FEAT_TERMINAL) + #include <signal.h> #ifdef __CYGWIN32__ @@ -414,3 +416,5 @@ return -1; } #endif + +#endif /* FEAT_GUI || FEAT_TERMINAL */