From d14679ff29eea180ff4317fa1437a86e3f69593e Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 1 Aug 2025 19:04:31 +0200 Subject: [PATCH] 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 --- hw/kdrive/ephyr/meson.build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hw/kdrive/ephyr/meson.build b/hw/kdrive/ephyr/meson.build index 148b82cefd..11d0b17c07 100644 --- a/hw/kdrive/ephyr/meson.build +++ b/hw/kdrive/ephyr/meson.build @@ -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,