about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-11 03:42:06 -0500
committerJune McEnroe <june@causal.agency>2020-02-11 03:42:06 -0500
commit2404e15e72dcf12395f914bc933faeaaa6e8be33 (patch)
tree65f00a9684f39b12dc13e0d35a6972d58a798390
parentFix completeReplace iteration (diff)
downloadcatgirl-2404e15e72dcf12395f914bc933faeaaa6e8be33.tar.gz
catgirl-2404e15e72dcf12395f914bc933faeaaa6e8be33.zip
Check if VDSUSP exists
-rw-r--r--ui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui.c b/ui.c
index 6c9606d..d3c5322 100644
--- a/ui.c
+++ b/ui.c
@@ -176,7 +176,9 @@ static void acquireKeys(void) {
 	term.c_iflag &= ~IXON;
 	term.c_cc[VINTR] = _POSIX_VDISABLE;
 	term.c_cc[VSUSP] = _POSIX_VDISABLE;
+#ifdef VDSUSP
 	term.c_cc[VDSUSP] = _POSIX_VDISABLE;
+#endif
 	term.c_cc[VDISCARD] = _POSIX_VDISABLE;
 	error = tcsetattr(STDOUT_FILENO, TCSADRAIN, &term);
 	if (error) err(EX_OSERR, "tcsetattr");