console fixes
PATCH 1/1 console fixes
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 <[email protected]>
Signature · 12 lines
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
tools/console/client/main.c +2 -1
@@ -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);
tools/console/daemon/utils.c +1 -0
@@ -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-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel