diff options
author | Eric Blake <eblake@redhat.com> | 2013-09-04 15:57:30 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2013-09-04 16:00:36 -0600 |
commit | 7e1cbd14bb3fe604466b90ed65f0aebf6207a74c (patch) | |
tree | cd887278193393a88ee857bf31f38778a6342735 /tools/virsh.h | |
parent | 5236aed83f54fca2e7072262aa29416b281e620a (diff) | |
download | libvirt-7e1cbd14bb3fe604466b90ed65f0aebf6207a74c.tar.gz |
virsh: fix build on mingw, which lacks termios stuff
Recent patches to fix handling of Ctrl-C when interacting with
ssh are not portable to mingw, which lacks termios handling.
The simplest solution is to just compile that code out, and
if someone ever appears that has a serious interest in getting
virsh fully functional even with ssh connections, they can
provide patches at that time.
* tools/virsh.h (_vshControl): Make termattr conditional.
* tools/virsh.c (vshTTYIsInterruptCharacter)
(vshTTYDisableInterrupt, vshTTYRestore, cfmakeraw, vshTTYMakeRaw)
(main): Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tools/virsh.h')
-rw-r--r-- | tools/virsh.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/virsh.h b/tools/virsh.h index 8afe13f60d..b5e2715e65 100644 --- a/tools/virsh.h +++ b/tools/virsh.h @@ -242,7 +242,9 @@ struct _vshControl { const char *escapeChar; /* String representation of console escape character */ +# ifndef WIN32 struct termios termattr; /* settings of the tty terminal */ +# endif bool istty; /* is the terminal a tty */ }; |