Issue #22117: Use the new _PyTime_t API in the select module

This commit is contained in:
Victor Stinner 2015-03-28 05:07:51 +01:00
parent f5faad2bf0
commit c337838af7
3 changed files with 22 additions and 41 deletions

View file

@ -469,7 +469,7 @@ _PyTime_AsTimeval(_PyTime_t t, struct timeval *tv, _PyTime_round_t round)
return res;
}
#ifdef HAVE_CLOCK_GETTIME
#if defined(HAVE_CLOCK_GETTIME) || defined(HAVE_KQUEUE)
int
_PyTime_AsTimespec(_PyTime_t t, struct timespec *ts)
{