From: Peter Krempa Date: Thu, 6 Dec 2012 18:41:53 +0000 (+0100) Subject: virsh: Fix usage of header termios.h X-Git-Tag: v1.0.1-rc1~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=989a427de8117c7fb86570467d3bac7553072d31;p=thirdparty%2Flibvirt.git virsh: Fix usage of header termios.h The termios struct exported by the termios.h header is used as an argument for vshMakeStdinRaw(). The header isn't used anywhere in tools/virsh-domain.c. This patch adds the header to the header declaring vshMakeStdinRaw() and removes other places in virsh. --- diff --git a/tools/console.h b/tools/console.h index 962594cfc2..46255b82a6 100644 --- a/tools/console.h +++ b/tools/console.h @@ -1,7 +1,7 @@ /* * console.c: A dumb serial console client * - * Copyright (C) 2007, 2010 Red Hat, Inc. + * Copyright (C) 2007, 2010, 2012 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -25,6 +25,8 @@ # ifndef WIN32 +# include + int vshRunConsole(virDomainPtr dom, const char *dev_name, const char *escape_seq, diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 1f7aff7a94..96e62fcd44 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -30,7 +30,6 @@ #include #include #include -#include #include #include diff --git a/tools/virsh.c b/tools/virsh.c index 322f7785b9..b4829a34df 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include