kdrive: xephyr: link pthread on mingw for nanosleep()

For strange reaons, nanosleep() is in libpthread on mingw platform,
so we have to link it here.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-08-01 19:04:31 +02:00
committed by Enrico Weigelt
parent 73db0ed5d4
commit d14679ff29

View File

@@ -37,6 +37,11 @@ if build_xv
xephyr_dep += dependency('xcb-xv')
endif
# mingw needs this for nanosleep()
if host_machine.system() == 'windows'
xephyr_dep += cc.find_library('pthread', required : true, static: true)
endif
xephyr_server = executable(
'Xephyr',
srcs,