Skip to content

Commit bafad85

Browse files
[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 e419817) Signed-off-by: leleliu008 <[email protected]> Co-authored-by: leleliu008 <[email protected]>
1 parent 797aac7 commit bafad85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/timemodule.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ time_clockid_converter(PyObject *obj, clockid_t *p)
187187
{
188188
#ifdef _AIX
189189
long long clk_id = PyLong_AsLongLong(obj);
190+
#elif defined(__DragonFly__)
191+
long clk_id = PyLong_AsLong(obj);
190192
#else
191193
int clk_id = PyLong_AsInt(obj);
192194
#endif

0 commit comments

Comments
 (0)