mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
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:
parent
790dfee5ea
commit
989a427de8
@ -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,
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user