[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Fix tools/console to build on NetBSD.
# HG changeset patch # User Keir Fraser <keir@xxxxxxxxxxxxx> # Date 1190300542 -3600 # Node ID 40bf3ffff48425057117bfabcc1243250ae48cee # Parent ecbddf7b7896ed0883fe642c159648b69924c184 Fix tools/console to build on NetBSD. - include headers needed to build on NetBSD - Remove unused pty.h - Initialize spty terminal before actually using it Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx> --- tools/console/client/main.c | 6 +++--- tools/console/daemon/utils.c | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff -r ecbddf7b7896 -r 40bf3ffff484 tools/console/client/main.c --- a/tools/console/client/main.c Thu Sep 20 15:59:51 2007 +0100 +++ b/tools/console/client/main.c Thu Sep 20 16:02:22 2007 +0100 @@ -34,7 +34,7 @@ #include <sys/select.h> #include <err.h> #include <errno.h> -#include <pty.h> +#include <string.h> #include "xs.h" @@ -113,9 +113,8 @@ static void init_term(int fd, struct ter { struct termios new_term; - if (tcgetattr(fd, old) == -1) { + if (tcgetattr(fd, old) == -1) return; - } new_term = *old; cfmakeraw(&new_term); @@ -289,6 +288,7 @@ int main(int argc, char **argv) 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); diff -r ecbddf7b7896 -r 40bf3ffff484 tools/console/daemon/utils.c --- a/tools/console/daemon/utils.c Thu Sep 20 15:59:51 2007 +0100 +++ b/tools/console/daemon/utils.c Thu Sep 20 16:02:22 2007 +0100 @@ -32,6 +32,7 @@ #include <sys/socket.h> #include <sys/un.h> #include <string.h> +#include <signal.h> #include "xenctrl.h" #include "utils.h" _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |