]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: fix build on mingw, which lacks termios stuff
authorEric Blake <eblake@redhat.com>
Wed, 4 Sep 2013 21:57:30 +0000 (15:57 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 4 Sep 2013 22:00:36 +0000 (16:00 -0600)
commit7e1cbd14bb3fe604466b90ed65f0aebf6207a74c
treecd887278193393a88ee857bf31f38778a6342735
parent5236aed83f54fca2e7072262aa29416b281e620a
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>
tools/virsh.c
tools/virsh.h