qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1.1 0/2]: qemu-ga: fix build on openbsd
@ 2012-05-23 18:48 Luiz Capitulino
  2012-05-23 18:48 ` [Qemu-devel] [PATCH 1/2] configure: check if environ is declared Luiz Capitulino
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Luiz Capitulino @ 2012-05-23 18:48 UTC (permalink / raw)
  To: qemu-devel; +Cc: aliguori, eblake, mdroth, afaerber, kraxel

Build error found by buildbot:

 qga/commands-posix.c: In function 'qmp_guest_shutdown':
 qga/commands-posix.c:65: error: 'environ' undeclared (first use in this function)
 qga/commands-posix.c:65: error: (Each undeclared identifier is reported only once
 qga/commands-posix.c:65: error: for each function it appears in.)

On F16 environ is declared in <unistd.h>, but that obviously doesn't
happen on all systems.

Tested on OpenBSD 4.9.

PS: I get zillions of -Wno-redundant-decls errors on OpenBSD 4.8 and still
    get other warnnigs if I drop that flag.

 configure            |   19 +++++++++++++++++++
 qga/commands-posix.c |    6 +++++-
 2 files changed, 24 insertions(+), 1 deletion(-)

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-05-23 23:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-23 18:48 [Qemu-devel] [PATCH 1.1 0/2]: qemu-ga: fix build on openbsd Luiz Capitulino
2012-05-23 18:48 ` [Qemu-devel] [PATCH 1/2] configure: check if environ is declared Luiz Capitulino
2012-05-23 18:48 ` [Qemu-devel] [PATCH 2/2] qemu-ga: Fix missing environ declaration Luiz Capitulino
2012-05-23 20:08 ` [Qemu-devel] [PATCH 1.1 0/2]: qemu-ga: fix build on openbsd Michael Roth
2012-05-23 21:25   ` Luiz Capitulino
2012-05-23 22:02     ` Michael Roth
2012-05-23 22:15       ` Andreas Färber
2012-05-23 22:57         ` Michael Roth
2012-05-23 23:07         ` Michael Roth

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).