Merge from vendor branch TNF:
[pkgsrcv2.git] / sysutils / xentools3 / patches / patch-cc
1 $NetBSD: patch-cc,v 1.1 2007/06/14 19:39:46 bouyer Exp $
2
3 --- console/client/main.c.orig  2007-05-18 16:45:21.000000000 +0200
4 +++ console/client/main.c       2007-05-27 14:43:14.000000000 +0200
5 @@ -34,7 +34,11 @@
6  #include <sys/select.h>
7  #include <err.h>
8  #include <errno.h>
9 +#ifndef __NetBSD__
10  #include <pty.h>
11 +#endif
12 +#include <string.h>
13 +
14  
15  #include "xs.h"
16  
17 @@ -289,6 +293,7 @@
18                 err(errno, "Could not read tty from store");
19         }
20  
21 +       init_term(spty, &attr);
22         init_term(STDIN_FILENO, &attr);
23         console_loop(spty, xs, path);
24         restore_term(STDIN_FILENO, &attr);