pkgsrc/sysutils/xentools3/patches/patch-cc
bouyer 8f53a002b7 Back out previous change on patch-cc: setting the pty slave to raw is still
required for pgrub. Ride the previous PKGREVISION bump.
2008-03-08 17:24:20 +00:00

24 lines
562 B
Text

$NetBSD: patch-cc,v 1.3 2008/03/08 17:24:20 bouyer Exp $
--- console/client/main.c.orig 2007-05-18 16:45:21.000000000 +0200
+++ console/client/main.c 2007-05-27 14:43:14.000000000 +0200
@@ -34,7 +34,11 @@
#include <sys/select.h>
#include <err.h>
#include <errno.h>
+#ifndef __NetBSD__
#include <pty.h>
+#endif
+#include <string.h>
+
#include "xs.h"
@@ -289,6 +293,7 @@
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);