mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-134771: Fix time_clockid_converter() on Cygwin (#134772)
Use long for clockid_t instead of int.
This commit is contained in:
parent
f49a07b531
commit
d96343679f
2 changed files with 3 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
The ``time_clockid_converter()`` function now selects correct type for
|
||||||
|
``clockid_t`` on Cygwin which fixes a build error.
|
|
@ -187,7 +187,7 @@ time_clockid_converter(PyObject *obj, clockid_t *p)
|
||||||
{
|
{
|
||||||
#ifdef _AIX
|
#ifdef _AIX
|
||||||
long long clk_id = PyLong_AsLongLong(obj);
|
long long clk_id = PyLong_AsLongLong(obj);
|
||||||
#elif defined(__DragonFly__)
|
#elif defined(__DragonFly__) || defined(__CYGWIN__)
|
||||||
long clk_id = PyLong_AsLong(obj);
|
long clk_id = PyLong_AsLong(obj);
|
||||||
#else
|
#else
|
||||||
int clk_id = PyLong_AsInt(obj);
|
int clk_id = PyLong_AsInt(obj);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue