]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: Fix usage of header termios.h
authorPeter Krempa <pkrempa@redhat.com>
Thu, 6 Dec 2012 18:41:53 +0000 (19:41 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 7 Dec 2012 13:21:25 +0000 (14:21 +0100)
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.

tools/console.h
tools/virsh-domain.c
tools/virsh.c

index 962594cfc27c4b076ea06ea0df2d80d0412ac28d..46255b82a646f4ce306d440fb2e64ddc3965b1c5 100644 (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,
index 1f7aff7a94728ad1c4172fba918fecf4c0e26605..96e62fcd447e0b1c9a23e708a935400f07b26906 100644 (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>
index 322f7785b9d3f365bb68cf53432bb136eee0aac0..b4829a34df9def11c5622a704c3edd10c4f1afb3 100644 (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>