unix/modtime: Unbreak Windows build after changes to check select() result.

This commit is contained in:
Paul Sokolovsky 2015-11-29 14:31:58 +02:00
parent 0bb57bf5bf
commit fad7d9317b
1 changed files with 2 additions and 1 deletions

View File

@ -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