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.
This commit is contained in:
Peter Krempa 2012-12-06 19:41:53 +01:00
parent 790dfee5ea
commit 989a427de8
3 changed files with 3 additions and 3 deletions

View File

@ -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 <termios.h>
int vshRunConsole(virDomainPtr dom,
const char *dev_name,
const char *escape_seq,

View File

@ -30,7 +30,6 @@
#include <poll.h>
#include <signal.h>
#include <sys/time.h>
#include <termios.h>
#include <libxml/parser.h>
#include <libxml/tree.h>

View File

@ -42,7 +42,6 @@
#include <sys/stat.h>
#include <inttypes.h>
#include <strings.h>
#include <termios.h>
#include <libxml/parser.h>
#include <libxml/tree.h>