diff options
| author | Andrew Deason <adeason@sinenomine.net> | 2022-04-26 14:55:22 -0500 |
|---|---|---|
| committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-05-04 12:00:46 +0400 |
| commit | 59e35c7b659dc5b02c3525f9a2fd422fbc4b1364 (patch) | |
| tree | dfa0ee00235a1fcc9081925cde79144b8b8bad48 /hw/intc/omap_intc.c | |
| parent | 2e3408b3cc7de4e87a9adafc8c19bfce3abec947 (diff) | |
| download | focaccia-qemu-59e35c7b659dc5b02c3525f9a2fd422fbc4b1364.tar.gz focaccia-qemu-59e35c7b659dc5b02c3525f9a2fd422fbc4b1364.zip | |
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>
Diffstat (limited to 'hw/intc/omap_intc.c')
0 files changed, 0 insertions, 0 deletions