diff --git a/glib/tests/meson.build b/glib/tests/meson.build index 157708068..0d5e18694 100644 --- a/glib/tests/meson.build +++ b/glib/tests/meson.build @@ -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' : {},