From: Eric Blake <eblake@redhat.com>
To: Luiz Capitulino <lcapitulino@redhat.com>
Cc: agraf@suse.de, qemu-devel@nongnu.org,
"dunrong huang" <riegamaths@gmail.com>,
"Michael Roth" <mdroth@linux.vnet.ibm.com>,
qemu@buildbot.b1-systems.de, gollub@b1-systems.de,
"Andreas Färber" <afaerber@suse.de>
Subject: Re: [Qemu-devel] buildbot failure in qemu on default_openbsd_current
Date: Wed, 23 May 2012 10:01:02 -0600 [thread overview]
Message-ID: <4FBD09BE.8080305@redhat.com> (raw)
In-Reply-To: <20120523125711.783be240@doriath.home>
[-- Attachment #1: Type: text/plain, Size: 1665 bytes --]
On 05/23/2012 09:57 AM, Luiz Capitulino wrote:
>
> Anyone knows what I did wrong? Or, if anybody could test the attached fix...
Sorry, I'm not in a position to test the patch, but I can at least
review it.
>
>
> 0001-qemu-ga-Fix-missing-environ-declarion.patch
>
>
>>From 4a3f4cff8aa27fe3810d621d20bf90f18ca8e2d5 Mon Sep 17 00:00:00 2001
> From: Luiz Capitulino <lcapitulino@redhat.com>
> Date: Wed, 23 May 2012 11:33:51 -0300
> Subject: [PATCH] qemu-ga: Fix missing environ declarion
s/declarion/declaration/
>
> Commit 3674838cd05268954bb6473239cd7f700a79bf0f uses the environ
> global variable, but is relying on it to be declared somewhere else.
>
> This works for Linux because _GNU_SOURCE declares it, but it brakes
s/brakes/breaks/
> for system where _GNU_SOURCE is not declared, such as OpenBSD.
>
> Fix it by declaring environ when _GNU_SOURCE is not defined.
>
> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
> ---
> qga/commands-posix.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/qga/commands-posix.c b/qga/commands-posix.c
> index 7664be1..304ffa8 100644
> --- a/qga/commands-posix.c
> +++ b/qga/commands-posix.c
> @@ -12,6 +12,7 @@
> */
>
> #include <glib.h>
> +#include <unistd.h>
> #include <sys/types.h>
> #include <sys/ioctl.h>
> #include "qga/guest-agent-core.h"
> @@ -20,6 +21,10 @@
> #include "qemu-queue.h"
> #include "host-utils.h"
>
> +#ifndef _GNU_SOURCE
> +extern char **environ;
> +#endif
Looks reasonable.
--
Eric Blake eblake@redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 620 bytes --]
next prev parent reply other threads:[~2012-05-23 16:01 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-22 23:09 [Qemu-devel] buildbot failure in qemu on default_openbsd_current qemu
2012-05-22 23:41 ` Andreas Färber
2012-05-23 2:35 ` dunrong huang
2012-05-23 13:39 ` Luiz Capitulino
2012-05-23 14:33 ` dunrong huang
2012-05-23 14:35 ` Luiz Capitulino
2012-05-23 15:57 ` Luiz Capitulino
2012-05-23 16:01 ` Eric Blake [this message]
2012-05-23 18:46 ` Luiz Capitulino
2012-05-23 16:06 ` Paolo Bonzini
2012-05-23 16:11 ` Luiz Capitulino
2012-05-23 16:22 ` Michael Roth
-- strict thread matches above, loose matches on Subject: below --
2012-09-15 0:55 qemu
2012-08-15 23:06 qemu
2012-07-28 23:09 qemu
2012-07-19 23:14 qemu
2012-07-17 23:08 qemu
2012-06-09 0:31 qemu
2012-06-10 16:01 ` Paolo Bonzini
2012-06-10 20:36 ` Blue Swirl
2012-03-01 0:08 qemu
2012-02-04 0:07 qemu
2011-10-03 23:12 qemu
2011-09-20 23:05 qemu
2011-08-14 23:11 qemu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FBD09BE.8080305@redhat.com \
--to=eblake@redhat.com \
--cc=afaerber@suse.de \
--cc=agraf@suse.de \
--cc=gollub@b1-systems.de \
--cc=lcapitulino@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu@buildbot.b1-systems.de \
--cc=riegamaths@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).