summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorJoannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>2019-01-10 16:56:38 (GMT)
committerVictor Stinner <vstinner@redhat.com>2019-01-10 16:56:38 (GMT)
commit572168a016ece1b7346695eb7289190c46f1ae55 (patch)
tree4e158385ec00f42a84df8bc91a4f9d911bc487ee /Modules
parent89c4f90df97f6039325e354167e8f507bf199fd9 (diff)
downloadcpython-572168a016ece1b7346695eb7289190c46f1ae55.zip
cpython-572168a016ece1b7346695eb7289190c46f1ae55.tar.gz
cpython-572168a016ece1b7346695eb7289190c46f1ae55.tar.bz2
bpo-35702: Add new identifier time.CLOCK_UPTIME_RAW for macOS 10.12 (GH-11503)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/timemodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index fa0f198..2e0f08d 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -1806,6 +1806,9 @@ PyInit_time(void)
#ifdef CLOCK_UPTIME
PyModule_AddIntMacro(m, CLOCK_UPTIME);
#endif
+#ifdef CLOCK_UPTIME_RAW
+ PyModule_AddIntMacro(m, CLOCK_UPTIME_RAW);
+#endif
#endif /* defined(HAVE_CLOCK_GETTIME) || defined(HAVE_CLOCK_SETTIME) || defined(HAVE_CLOCK_GETRES) */