notaz.gp2x.de
/
libpicofe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0d65e9
)
compile fix for windows mingw
author
kub
<derkub@gmail.com>
Thu, 9 Jan 2025 22:55:10 +0000
(23:55 +0100)
committer
kub
<derkub@gmail.com>
Thu, 9 Jan 2025 22:55:10 +0000
(23:55 +0100)
linux/plat.c
patch
|
blob
|
blame
|
history
diff --git
a/linux/plat.c
b/linux/plat.c
index
c4ce811
..
0b64d93
100644
(file)
--- 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;
}