mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
meson: add winsock2 library on windows builds
If building for windows with curl disabled we get build failures due to missing ws2_32 library needed for winsock2. Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
eeb0c9aef0
commit
143d2e9bde
@ -1368,10 +1368,12 @@ libutil_dep = cc.find_library('util', required: false)
|
||||
if host_machine.system() == 'windows'
|
||||
ole32_dep = cc.find_library('ole32')
|
||||
oleaut32_dep = cc.find_library('oleaut32')
|
||||
winsock2_dep = cc.find_library('ws2_32')
|
||||
win32_dep = declare_dependency(
|
||||
dependencies: [
|
||||
ole32_dep,
|
||||
oleaut32_dep,
|
||||
winsock2_dep,
|
||||
],
|
||||
)
|
||||
if get_option('default_library') == 'static'
|
||||
|
Loading…
Reference in New Issue
Block a user