From e1f54667a394abd8fd2b9106f003d6183471ce41 Mon Sep 17 00:00:00 2001 From: Ayappan P Date: Fri, 3 Nov 2023 09:33:38 -0400 Subject: [PATCH 1/2] pythongh-111687: Fix 32bit build on AIX --- Modules/timemodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/timemodule.c b/Modules/timemodule.c index e82f6eb98ebaf3..f96a11f1261fa0 100644 --- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -236,8 +236,8 @@ _PyTime_GetClockWithInfo(_PyTime_t *tp, _Py_clock_info_t *info) static int time_clockid_converter(PyObject *obj, clockid_t *p) { -#if defined(_AIX) && (SIZEOF_LONG == 8) - long clk_id = PyLong_AsLong(obj); +#if defined(_AIX) + long long clk_id = PyLong_AsLongLong(obj); #else int clk_id = PyLong_AsInt(obj); #endif From e9b91676299bbdc25321e4b998bdeb985d6c65dc Mon Sep 17 00:00:00 2001 From: Ayappan P Date: Fri, 3 Nov 2023 09:46:02 -0400 Subject: [PATCH 2/2] Add NEWS entry --- .../next/Build/2023-11-03-09-45-03.gh-issue-111687.34tTsu.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Build/2023-11-03-09-45-03.gh-issue-111687.34tTsu.rst diff --git a/Misc/NEWS.d/next/Build/2023-11-03-09-45-03.gh-issue-111687.34tTsu.rst b/Misc/NEWS.d/next/Build/2023-11-03-09-45-03.gh-issue-111687.34tTsu.rst new file mode 100644 index 00000000000000..723d23beb96356 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2023-11-03-09-45-03.gh-issue-111687.34tTsu.rst @@ -0,0 +1 @@ +``clockid_t`` in AIX is ``long long`` in both 32bit and 64bit build