diff --git a/src/syncterm/conn_pty.c b/src/syncterm/conn_pty.c
index 856a7697bb31f2379829255997b9dd071a5a6260..fd63ca88b73f9f837c388461f504b322f70e2cc8 100644
--- a/src/syncterm/conn_pty.c
+++ b/src/syncterm/conn_pty.c
@@ -2,6 +2,7 @@
 
 #ifdef __unix__
 
+#include <unistd.h>		/* _POSIX_VDISABLE - needed when termios.h is broken */
 #include <signal.h>		// kill()
 #include <sys/wait.h>	// WEXITSTATUS