From bafad8518149e5fd0d62fae83676e85e409246fd Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Fri, 28 Feb 2025 09:19:45 +0100 Subject: [PATCH] [3.13] gh-130617 : fix time_clockid_converter on DragonFlyBSD (GH-130634) (#130666) gh-130617 : fix time_clockid_converter on DragonFlyBSD (GH-130634) (cherry picked from commit e41981704f0a6adb58c3e258b4226619521ce03c) Signed-off-by: leleliu008 Co-authored-by: leleliu008 --- Modules/timemodule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/timemodule.c b/Modules/timemodule.c index 94260ba83f68..49626d32fd38 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 -- 2.47.3