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

pull/1656/merge
Paul Sokolovsky 2015-11-29 14:31:58 +02:00
rodzic 0bb57bf5bf
commit fad7d9317b
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

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