* Re: [Qemu-devel] [Qemu-stable] [PATCH for 1.5] ui/gtk.c: Fix *BSD build of Gtk+ UI
[not found] ` <20130524184737.GA9642@rox.home.comstyle.com>
@ 2013-05-25 9:14 ` Michael Tokarev
2013-06-05 18:22 ` Brad Smith
0 siblings, 1 reply; 3+ messages in thread
From: Michael Tokarev @ 2013-05-25 9:14 UTC (permalink / raw)
To: Brad Smith; +Cc: qemu-stable, qemu-devel
24.05.2013 22:47, Brad Smith wrote:
>>> +++ b/include/qemu-common.h
>>> #elif defined CONFIG_BSD
>>> +# include <termios.h>
> Kinda late nit picking about it now.
It's not. And it's not nitpicking really, we're
carrying a ton of unnecessary #includes which slows
down compilation significantly.
The whole this piece of #include twist was to get
declaration of openpty() or equivalent. You just
stiffed an unrelated #include into this piece which
was okay to remove completely. I already removed
it from several other .c files where it went from
vl.c originally, which used to have chardev code
which is now in another file.
What was the original issue? Where exactly it was
failing? I mean, where's the _proper_ place to
fix it?
Speaking of "too late" -- it is definitely not late
to fix another bug.
Thanks,
/mjt
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [Qemu-stable] [PATCH for 1.5] ui/gtk.c: Fix *BSD build of Gtk+ UI
2013-05-25 9:14 ` [Qemu-devel] [Qemu-stable] [PATCH for 1.5] ui/gtk.c: Fix *BSD build of Gtk+ UI Michael Tokarev
@ 2013-06-05 18:22 ` Brad Smith
0 siblings, 0 replies; 3+ messages in thread
From: Brad Smith @ 2013-06-05 18:22 UTC (permalink / raw)
To: Michael Tokarev; +Cc: qemu-stable, qemu-devel
On 25/05/13 5:14 AM, Michael Tokarev wrote:
> 24.05.2013 22:47, Brad Smith wrote:
>
>>>> +++ b/include/qemu-common.h
>>>> #elif defined CONFIG_BSD
>>>> +# include <termios.h>
>
>> Kinda late nit picking about it now.
>
> It's not. And it's not nitpicking really, we're
> carrying a ton of unnecessary #includes which slows
> down compilation significantly.
I agree.
> The whole this piece of #include twist was to get
> declaration of openpty() or equivalent. You just
> stiffed an unrelated #include into this piece which
> was okay to remove completely. I already removed
> it from several other .c files where it went from
> vl.c originally, which used to have chardev code
> which is now in another file.
It was not unrelated, it was necessary for the BSD
code path which utilizes openpty().
> What was the original issue? Where exactly it was
> failing? I mean, where's the _proper_ place to
> fix it?
It was failing in the Gtk+ UI code due to the use
of openpty().
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [Qemu] [PATCH for 1.5] ui/gtk.c: Fix *BSD build of Gtk+ UI
[not found] <20130522223817.GB14845@rox.home.comstyle.com>
[not found] ` <519E3091.2060402@msgid.tls.msk.ru>
@ 2013-06-05 10:13 ` Michael Tokarev
1 sibling, 0 replies; 3+ messages in thread
From: Michael Tokarev @ 2013-06-05 10:13 UTC (permalink / raw)
To: Brad Smith; +Cc: qemu-devel
23.05.2013 02:38, Brad Smith wrote:
> Fix the build of the Gtk+ UI on *BSD systems.
Can you please describe what exactly was broken on *BSD
systems, -- which file(s) needs this additional
termios.h include?
I want to fix this properly, because now it isn't
"nitpicking", as you say, anymore -- after the
previous pbonzini's changes it does not build
on debian sparc anymore due to some conflicting
includes (which is an unrelated issue, but is
triggered now because every .c file includes
a ton of #defines).
I already asked you the same question on 25.05,
which is about two weeks ago by now, -- did you
had no time to reply so far?
Thanks,
/mjt
> Signed-off-by: Brad Smith <brad@comstyle.com>
> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
> Message-id: 20130521161324.GA29977@rox.home.comstyle.com
> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
>
> diff --git a/include/qemu-common.h b/include/qemu-common.h
> index af769f5..c944bb7 100644
> --- a/include/qemu-common.h
> +++ b/include/qemu-common.h
> @@ -45,6 +45,7 @@
> #if defined(__GLIBC__)
> # include <pty.h>
> #elif defined CONFIG_BSD
> +# include <termios.h>
> # if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
> # include <libutil.h>
> # else
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-05 18:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20130522223817.GB14845@rox.home.comstyle.com>
[not found] ` <519E3091.2060402@msgid.tls.msk.ru>
[not found] ` <20130524184737.GA9642@rox.home.comstyle.com>
2013-05-25 9:14 ` [Qemu-devel] [Qemu-stable] [PATCH for 1.5] ui/gtk.c: Fix *BSD build of Gtk+ UI Michael Tokarev
2013-06-05 18:22 ` Brad Smith
2013-06-05 10:13 ` [Qemu-devel] [Qemu] " Michael Tokarev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).