summaryrefslogtreecommitdiffstats
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
authorRussell Owen <rowen@uw.edu>2020-03-24 03:41:40 (GMT)
committerGitHub <noreply@github.com>2020-03-24 03:41:40 (GMT)
commit6000087fe979705dc588a46a35da884cc0198c67 (patch)
treebb030336c380f218a2a878f204fb495371103d89 /Modules/timemodule.c
parent70d9d74411c121896820e137ecd56e55c087adcc (diff)
downloadcpython-6000087fe979705dc588a46a35da884cc0198c67.zip
cpython-6000087fe979705dc588a46a35da884cc0198c67.tar.gz
cpython-6000087fe979705dc588a46a35da884cc0198c67.tar.bz2
closes bpo-40017: Add CLOCK_TAI constant to the time module. (GH-19096)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r--Modules/timemodule.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index f458966..e269cd0 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -1786,6 +1786,11 @@ time_exec(PyObject *module)
return -1;
}
#endif
+#ifdef CLOCK_TAI
+ if (PyModule_AddIntMacro(module, CLOCK_TAI) < 0) {
+ return -1;
+ }
+#endif
#ifdef CLOCK_UPTIME
if (PyModule_AddIntMacro(module, CLOCK_UPTIME) < 0) {
return -1;