qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 2/9] util/qemu-openpty.c: Don't assume pty.h is glibc-only


From: Eric Blake
Subject: Re: [PATCH v3 2/9] util/qemu-openpty.c: Don't assume pty.h is glibc-only
Date: Mon, 6 Jul 2020 09:00:31 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0

On 7/3/20 10:12 AM, Thomas Huth wrote:

+++ b/util/qemu-openpty.c
@@ -35,7 +35,7 @@
  #include "qemu/osdep.h"
  #include "qemu-common.h"
-#if defined(__GLIBC__)
+#if defined CONFIG_PTY


Shouldn't there be some parentheses around CONFIG_PTY here?

No, they are optional, and omitting them is more consistent with the CONFIG_BSD just below.

>  #elif defined CONFIG_BSD
>  # include <termios.h>

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]