Skip to contentSkip to conversation

console fixes

PATCH New Christoph Egger 1 participant 1 message Sep 20, 2007

lore
Share & tools
lore
#0 lore raw

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

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
diff -r a00cc97b392a tools/console/client/main.c
@@ -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
diff -r a00cc97b392a tools/console/daemon/utils.c
@@ -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