WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Fix tools/console to build on NetBSD.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Fix tools/console to build on NetBSD.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 26 Sep 2007 03:41:02 -0700
Delivery-date: Wed, 26 Sep 2007 04:27:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Fix tools/console to build on NetBSD., Xen patchbot-unstable <=