[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/9] Enabling *pty api
From: |
David CARLIER |
Subject: |
[PATCH 2/9] Enabling *pty api |
Date: |
Mon, 29 Jun 2020 22:48:13 +0100 |
>From 8b205a027dacad08ce9187474d9490667904a4e2 Mon Sep 17 00:00:00 2001
From: David Carlier <devnexen@gmail.com>
Date: Mon, 29 Jun 2020 22:14:53 +0000
Subject: [PATCH 2/9] Enabling *pty api
Signed-off-by: David Carlier <devnexen@gmail.com>
---
configure | 9 +++++++++
util/qemu-openpty.c | 2 +-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index d81931ba5e..50b559238f 100755
--- a/configure
+++ b/configure
@@ -2386,6 +2386,12 @@ else
l2tpv3=no
fi
+if check_include "pty.h" ; then
+ pty_h=yes
+else
+ pty_h=no
+fi
+
#########################################
# vhost interdependencies and host support
@@ -7856,6 +7862,9 @@ fi
if test "$sheepdog" = "yes" ; then
echo "CONFIG_SHEEPDOG=y" >> $config_host_mak
fi
+if test "$pty_h" = "yes" ; then
+ echo "CONFIG_PTY=y" >> $config_host_mak
+fi
if test "$fuzzing" = "yes" ; then
if test "$have_fuzzer" = "yes"; then
FUZZ_LDFLAGS=" -fsanitize=address,fuzzer"
diff --git a/util/qemu-openpty.c b/util/qemu-openpty.c
index 2e8b43bdf5..9d8ad6905e 100644
--- a/util/qemu-openpty.c
+++ b/util/qemu-openpty.c
@@ -35,7 +35,7 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
-#if defined(__GLIBC__)
+#if defined CONFIG_PTY
# include <pty.h>
#elif defined CONFIG_BSD
# include <termios.h>
--
2.26.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH 2/9] Enabling *pty api,
David CARLIER <=