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