Skip to content

Commit e419817

Browse files
authored
pythongh-130617 : fix time_clockid_converter on DragonFlyBSD (python#130634)
Signed-off-by: leleliu008 <leleliu008@gmail.com>
1 parent 9211b3d commit e419817

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)