Skip to content

Commit 774067a

Browse files
leleliu008miss-islington
authored andcommitted
pythongh-130617 : fix time_clockid_converter on DragonFlyBSD (pythonGH-130634)
(cherry picked from commit e419817) Co-authored-by: leleliu008 <leleliu008@gmail.com> Signed-off-by: leleliu008 <leleliu008@gmail.com>
1 parent 797aac7 commit 774067a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/timemodule.c

+2
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)