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