$NetBSD: patch-cc,v 1.2 2006/10/19 22:57:13 bouyer Exp $ --- console/client/main.c.orig 2006-10-16 22:56:01.000000000 +0200 +++ console/client/main.c 2006-10-16 22:57:28.000000000 +0200 @@ -34,7 +34,11 @@ #include #include #include +#ifndef __NetBSD__ #include +#endif +#include + #include "xs.h" @@ -253,6 +257,7 @@ free(str_pty); free(path); + init_term(spty, &attr); init_term(STDIN_FILENO, &attr); console_loop(spty); restore_term(STDIN_FILENO, &attr);