meson: build gpoll test on windows

This commit is contained in:
Ignacio Casal Quinteiro 2018-12-28 13:01:38 +01:00
parent a9ea169b64
commit 97f4ce5a77

View File

@ -131,7 +131,15 @@ if glib_conf.has('HAVE_EVENTFD')
}
endif
if host_machine.system() != 'windows'
if host_machine.system() == 'windows'
if winsock2.found()
glib_tests += {
'gpoll' : {
'dependencies' : [winsock2],
},
}
endif
else
glib_tests += {
'include' : {},
'unix' : {},