Am 27.05.2012 07:58, schrieb dunrong huang:
> 2012/5/27 Charlie Somerville <char...@charliesomerville.com>:
>> Hi qemu-devel,
>>
>> I tried to build the 1.1.0-rc3 on Mac OS X Lion, and I get this compile
>> error:
>>
>> 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.)
>>
>> If I hack in an 'extern char** environ;' to the top of that file, the build
>> proceeds without error.
> 
> Luiz Capitulino has fixed this bug, but it haven't be merged into master 
> branch.
> 
> More details, see:
> http://lists.nongnu.org/archive/html/qemu-devel/2012-05/msg03578.html

Hm, I'm less certain that fix is going to work for Darwin...

I remember using a code snippet #define environ *_NSGetEnviron() or so
on Darwin.

Will check.

Andreas

Reply via email to