]> xenbits.xensource.com Git - libvirt.git/commit
tests: always declare environ
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 7 Jan 2020 16:16:19 +0000 (16:16 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 17 Jan 2020 09:59:08 +0000 (09:59 +0000)
commit2df085bf2493b296de9448ee43be11133e2e3d69
treee793f63e63ccbc898ef32bf11938e1090a231958
parentf018fbac78ae5b0d9928ee9a4724b2f17c38efef
tests: always declare environ

Some UNIX platforms don't declare 'environ' in their
header files. We can unconditionally declare it ourselves
to avoid this problem.

There is no need to do this in the aa-helper code
since that is Linux only code.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tests/commandhelper.c
tests/commandtest.c