Skip to content

Commit fad7d93

Browse files
committed
unix/modtime: Unbreak Windows build after changes to check select() result.
1 parent 0bb57bf commit fad7d93

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

unix/modtime.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@
3636
#include "py/mphal.h"
3737

3838
#ifdef _WIN32
39-
void msec_sleep_tv(struct timeval *tv) {
39+
static inline int msec_sleep_tv(struct timeval *tv) {
4040
msec_sleep(tv->tv_sec * 1000.0 + tv->tv_usec / 1000.0);
41+
return 0;
4142
}
4243
#define sleep_select(a,b,c,d,e) msec_sleep_tv((e))
4344
#else

0 commit comments

Comments
 (0)