https://github.com/python/cpython/commit/e41981704f0a6adb58c3e258b4226619521ce03c
commit: e41981704f0a6adb58c3e258b4226619521ce03c
branch: main
author: leleliu008 <[email protected]>
committer: vstinner <[email protected]>
date: 2025-02-28T08:56:00+01:00
summary:

gh-130617 : fix time_clockid_converter on DragonFlyBSD (#130634)

Signed-off-by: leleliu008 <[email protected]>

files:
M Modules/timemodule.c

diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index 8d2cbff662b9a3..1bfbf3f6a0b991 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -187,6 +187,8 @@ time_clockid_converter(PyObject *obj, clockid_t *p)
 {
 #ifdef _AIX
     long long clk_id = PyLong_AsLongLong(obj);
+#elif defined(__DragonFly__)
+    long clk_id = PyLong_AsLong(obj);
 #else
     int clk_id = PyLong_AsInt(obj);
 #endif

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to