Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit55dde44

Browse files
committed
gh-134771: Fix time_clockid_converter() on Cygwin.
Use long for clockid_t instead of int.
1 parent9bf03c6 commit55dde44

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The `time_clockid_converter()` function now selects correct type for
2+
`clockid_t` on Cygwin which fixes a build error.

‎Modules/timemodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ time_clockid_converter(PyObject *obj, clockid_t *p)
187187
{
188188
#ifdef_AIX
189189
long longclk_id=PyLong_AsLongLong(obj);
190-
#elif defined(__DragonFly__)
190+
#elif defined(__DragonFly__)|| defined(__CYGWIN__)
191191
longclk_id=PyLong_AsLong(obj);
192192
#else
193193
intclk_id=PyLong_AsInt(obj);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp