aboutsummaryrefslogtreecommitdiff
path: root/tests/test-string-output-visitor.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2016-03-08 11:39:36 +0000
committerDaniel P. Berrange <berrange@redhat.com>2016-03-10 17:10:18 +0000
commit0a27af918b9cfb7fc1605c66dfc70700be16fab5 (patch)
tree3c361913d997f0c634e031d98f491587e00ef08f /tests/test-string-output-visitor.c
parentc619644067f98098dcdbc951e2dda79e97560afa (diff)
downloadqemu-0a27af918b9cfb7fc1605c66dfc70700be16fab5.zip
qemu-0a27af918b9cfb7fc1605c66dfc70700be16fab5.tar.gz
qemu-0a27af918b9cfb7fc1605c66dfc70700be16fab5.tar.bz2
io: use bind() to check for IPv4/6 availability
Currently the test-io-channel-socket.c test uses getifaddrs to see if an IPv4/6 address is present on any host NIC, as a way to determine if IPv4/6 sockets can be used. This is problematic because getifaddrs is not available on Win32. Rather than testing indirectly via getifaddrs, just create a socket and try to bind() to the loopback address instead. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'tests/test-string-output-visitor.c')
0 files changed, 0 insertions, 0 deletions