qemu-e2k/qga
Andrew Deason 59e35c7b65 qga/commands-posix: Use getifaddrs when available
Currently, commands-posix.c assumes that getifaddrs() is only
available on Linux, and so the related guest agent command
guest-network-get-interfaces is only implemented for #ifdef __linux__.
This function does exist on other platforms, though, such as Solaris.
So, add a meson check for getifaddrs(), and move the code for
guest-network-get-interfaces to be built whenever getifaddrs() is
available.

The implementation for guest-network-get-interfaces still has some
Linux-specific code, which is not fixed in this commit. This commit
moves the relevant big chunks of code around without changing them, so
a future commit can change the code in place.

Signed-off-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Message-Id: <20220426195526.7699-2-adeason@sinenomine.net>
2022-05-04 12:00:46 +04:00
..
installer qga-win/msi: fix missing libstdc++-6 DLL in MSI installer 2021-08-03 07:01:36 -05:00
vss-win32 qga/vss-win32: fix compilation with clang++ 2022-04-05 10:42:06 +02:00
channel-posix.c util: rename qemu_*block() socket functions 2022-05-03 15:53:20 +04:00
channel-win32.c qga: Add spaces around operator 2021-03-16 20:20:37 -05:00
channel.h
commands-common.h qga: move qga_get_host_name() 2022-04-21 17:09:09 +04:00
commands-posix-ssh.c Remove superfluous ERRP_GUARD() 2021-08-26 17:15:28 +02:00
commands-posix.c qga/commands-posix: Use getifaddrs when available 2022-05-04 12:00:46 +04:00
commands-win32.c qga: move qga_get_host_name() 2022-04-21 17:09:09 +04:00
commands.c qga: remove need for QEMU atomic.h 2022-04-21 17:09:09 +04:00
guest-agent-command-state.c
guest-agent-core.h Replace GCC_FMT_ATTR with G_GNUC_PRINTF 2022-03-22 14:40:51 +04:00
main.c qga: use fixed-length and GDateTime for log timestamp 2022-04-21 17:37:16 +04:00
meson.build qga: wixl: get path to sysroot from pkg-config as intended 2022-04-28 08:51:57 +02:00
qapi-schema.json qapi: Add spaces after symbol declaration for consistency 2021-10-02 07:33:41 +02:00
service-win32.c
service-win32.h
vss-win32.c
vss-win32.h