* [PATCH] console fixes
@ 2007-09-20 14:23 Christoph Egger
0 siblings, 0 replies; only message in thread
From: Christoph Egger @ 2007-09-20 14:23 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 670 bytes --]
Hi!
Attached patch makes tools/console 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@amd.com>
--
AMD Saxony, Dresden, Germany
Operating System Research Center
Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
Dr. Hans-R. Deppe, Thomas McCoy
[-- Attachment #2: tools_console.diff --]
[-- Type: text/plain, Size: 887 bytes --]
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 <sys/select.h>
#include <err.h>
#include <errno.h>
-#include <pty.h>
+#include <string.h>
#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 <sys/socket.h>
#include <sys/un.h>
#include <string.h>
+#include <signal.h>
#include "xenctrl.h"
#include "utils.h"
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-09-20 14:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-20 14:23 [PATCH] console fixes Christoph Egger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.