summaryrefslogtreecommitdiffstatshomepage
path: root/unix/modtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/modtime.c')
-rw-r--r--unix/modtime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/modtime.c b/unix/modtime.c
index 5d59294f2e..3bf62287a1 100644
--- a/unix/modtime.c
+++ b/unix/modtime.c
@@ -36,8 +36,9 @@
#include "py/mphal.h"
#ifdef _WIN32
-void msec_sleep_tv(struct timeval *tv) {
+static inline int msec_sleep_tv(struct timeval *tv) {
msec_sleep(tv->tv_sec * 1000.0 + tv->tv_usec / 1000.0);
+ return 0;
}
#define sleep_select(a,b,c,d,e) msec_sleep_tv((e))
#else