提交 989a427d 编写于 作者: P Peter Krempa

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.
上级 790dfee5
/*
* 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,
......
......@@ -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>
......
......@@ -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>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册