[libvirt] [PATCH 10/12] src: add check for termios.h and conditionally include it
Pavel Hrdina
phrdina at redhat.com
Tue Jan 14 15:12:15 UTC 2020
On Fri, Jan 10, 2020 at 03:41:14PM +0000, Daniel P. Berrangé wrote:
> The GNULIB termios module ensures termios.h exists, but
> this is not neccessary and libvirt doesn't use any of its
> functionality on platforms where it is missing. It is
> thus sufficient to conditonallyinclude termios.h
>
> Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> ---
> configure.ac | 1 +
> src/util/virfdstream.c | 4 +++-
> src/util/virfile.c | 4 +++-
> src/util/virutil.c | 1 -
> tools/virsh.h | 1 -
> tools/vsh.h | 4 +++-
> 6 files changed, 10 insertions(+), 5 deletions(-)
This makes the code guarded by HAVE_CFMAKERAW or by !WIN32 and the
header by HAVE_TERMIOS_H which makes things more confusing.
Should we take the opportunity to unify it?
Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200114/9807d5de/attachment-0001.sig>
More information about the libvir-list
mailing list