$NetBSD: patch-cc,v 1.3 2008/03/08 17:24:20 bouyer Exp $ --- console/client/main.c.orig 2007-05-18 16:45:21.000000000 +0200 +++ console/client/main.c 2007-05-27 14:43:14.000000000 +0200 @@ -34,7 +34,11 @@ #include #include #include +#ifndef __NetBSD__ #include +#endif +#include + #include "xs.h" @@ -289,6 +293,7 @@ err(errno, "Could not read tty from store"); } + init_term(spty, &attr); init_term(STDIN_FILENO, &attr); console_loop(spty, xs, path); restore_term(STDIN_FILENO, &attr);