From 7e1e5116fd2d07ed37e6775ce9f9867347573099 Mon Sep 17 00:00:00 2001 From: kub Date: Thu, 9 Jan 2025 23:55:10 +0100 Subject: [PATCH] compile fix for windows mingw --- linux/plat.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linux/plat.c b/linux/plat.c index c4ce811..0b64d93 100644 --- a/linux/plat.c +++ b/linux/plat.c @@ -144,6 +144,7 @@ void plat_sleep_ms(int ms) int plat_wait_event(int *fds_hnds, int count, int timeout_ms) { +#ifndef __MINGW32__ struct timeval tv, *timeout = NULL; int i, ret, fdmax = -1; fd_set fdset; @@ -175,7 +176,9 @@ int plat_wait_event(int *fds_hnds, int count, int timeout_ms) for (i = 0; i < count; i++) if (FD_ISSET(fds_hnds[i], &fdset)) ret = fds_hnds[i]; - +#else + int ret = -1; +#endif return ret; } -- 2.39.5