diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-03-28 04:07:51 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-03-28 04:07:51 (GMT) |
commit | c337838af798354603457043e2ad8cfd3cbea36e (patch) | |
tree | 93582cec2713c341fb59358e61c87033e9121977 /Include | |
parent | f5faad2bf017db9e99845de29420476914f1ef1d (diff) | |
download | cpython-c337838af798354603457043e2ad8cfd3cbea36e.zip cpython-c337838af798354603457043e2ad8cfd3cbea36e.tar.gz cpython-c337838af798354603457043e2ad8cfd3cbea36e.tar.bz2 |
Issue #22117: Use the new _PyTime_t API in the select module
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pytime.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/pytime.h b/Include/pytime.h index 3078d25..6edffbd 100644 --- a/Include/pytime.h +++ b/Include/pytime.h @@ -124,7 +124,7 @@ PyAPI_FUNC(int) _PyTime_AsTimeval(_PyTime_t t, struct timeval *tv, _PyTime_round_t round); -#ifdef HAVE_CLOCK_GETTIME +#if defined(HAVE_CLOCK_GETTIME) || defined(HAVE_KQUEUE) /* Convert a timestamp to a timespec structure (nanosecond resolution). tv_nsec is always positive. Raise an exception and return -1 on error, return 0 on success. */ |