From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Christoph Egger" Subject: [PATCH] console fixes Date: Thu, 20 Sep 2007 16:23:41 +0200 Message-ID: <200709201623.41958.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_tJo8GA7iSw5fJVS" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_tJo8GA7iSw5fJVS Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi! Attached patch makes tools/console build on NetBSD: =2D include headers needed to build on NetBSD =2D Remove unused pty.h =2D Initialize spty terminal before actually using it Signed-off-by: Christoph Egger =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy --Boundary-00=_tJo8GA7iSw5fJVS Content-Type: text/plain; charset=us-ascii; name=tools_console.diff Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=tools_console.diff diff -r a00cc97b392a tools/console/client/main.c --- a/tools/console/client/main.c Wed Sep 12 09:43:33 2007 +0100 +++ b/tools/console/client/main.c Thu Sep 20 16:01:54 2007 +0000 @@ -34,7 +34,7 @@ #include #include #include -#include +#include #include "xs.h" @@ -289,6 +289,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 a00cc97b392a tools/console/daemon/utils.c --- a/tools/console/daemon/utils.c Wed Sep 12 09:43:33 2007 +0100 +++ b/tools/console/daemon/utils.c Thu Sep 20 16:01:54 2007 +0000 @@ -32,6 +32,7 @@ #include #include #include +#include #include "xenctrl.h" #include "utils.h" --Boundary-00=_tJo8GA7iSw5fJVS Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_tJo8GA7iSw5fJVS--