summaryrefslogtreecommitdiff
path: root/src/pty.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-07-22 20:53:21 +0200
committerBram Moolenaar <Bram@vim.org>2017-07-22 20:53:21 +0200
commit6ed8069c798827ec4448f37bf2795a08fc9cbd05 (patch)
treeba152f57a9ebf4b25b0a8815dc92b758be3d9956 /src/pty.c
parent816e7660e1efb918ad85b5c78d21b957d1bcad17 (diff)
downloadvim-git-6ed8069c798827ec4448f37bf2795a08fc9cbd05.tar.gz
patch 8.0.0750: OpenPTY missing in non-GUI buildv8.0.0750
Problem: OpenPTY missing in non-GUI build. Solution: Always include pty.c, add an #ifdef to skip over the contents.
Diffstat (limited to 'src/pty.c')
-rw-r--r--src/pty.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pty.c b/src/pty.c
index 20ab65b2a..a738ac158 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 @@ OpenPTY(char **ttyn)
return -1;
}
#endif
+
+#endif /* FEAT_GUI || FEAT_TERMINAL */