From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXGbK-0005d8-UD for qemu-devel@nongnu.org; Wed, 23 May 2012 14:48:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXGbJ-0007iM-7z for qemu-devel@nongnu.org; Wed, 23 May 2012 14:48:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXGbI-0007hK-Vf for qemu-devel@nongnu.org; Wed, 23 May 2012 14:48:01 -0400 From: Luiz Capitulino Date: Wed, 23 May 2012 15:48:03 -0300 Message-Id: <1337798885-23070-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 1.1 0/2]: qemu-ga: fix build on openbsd List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, eblake@redhat.com, mdroth@linux.vnet.ibm.com, afaerber@suse.de, kraxel@redhat.com 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 , 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(-)