summaryrefslogtreecommitdiff
path: root/Python/pytime.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-28 05:07:51 +0100
committerVictor Stinner <victor.stinner@gmail.com>2015-03-28 05:07:51 +0100
commitc337838af798354603457043e2ad8cfd3cbea36e (patch)
tree93582cec2713c341fb59358e61c87033e9121977 /Python/pytime.c
parentf5faad2bf017db9e99845de29420476914f1ef1d (diff)
downloadcpython-git-c337838af798354603457043e2ad8cfd3cbea36e.tar.gz
Issue #22117: Use the new _PyTime_t API in the select module
Diffstat (limited to 'Python/pytime.c')
-rw-r--r--Python/pytime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pytime.c b/Python/pytime.c
index aa64977552..27004f338c 100644
--- a/Python/pytime.c
+++ b/Python/pytime.c
@@ -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)
{