From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 28 Feb 2025 08:19:45 +0000 (+0100) Subject: [3.13] gh-130617 : fix time_clockid_converter on DragonFlyBSD (GH-130634) (#130666) X-Git-Tag: v3.13.3~197 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bafad8518149e5fd0d62fae83676e85e409246fd;p=thirdparty%2FPython%2Fcpython.git [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 --- 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