From 8cfa74baa584962cf9f5d9c36edd1742a7faa33b Mon Sep 17 00:00:00 2001 From: Wildan M Date: Thu, 15 Oct 2026 15:02:07 +0700 Subject: [PATCH] python: Fix ioctl arg type --- recipes/dev/python312/redox.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/recipes/dev/python312/redox.patch b/recipes/dev/python312/redox.patch index 034194a22..60bf30819 100644 --- a/recipes/dev/python312/redox.patch +++ b/recipes/dev/python312/redox.patch @@ -120,6 +120,18 @@ diff -ruwN source/Modules/_cryptmodule.c source-new/Modules/_cryptmodule.c if (crypt_result == NULL) { return PyErr_SetFromErrno(PyExc_OSError); } +diff -ruwN source/Modules/fcntlmodule.c source-new/Modules/fcntlmodule.c +--- source/Modules/fcntlmodule.c 2025-10-09 11:07:00.000000000 +0000 ++++ source-new/Modules/fcntlmodule.c 2026-10-15 10:21:56.351900218 +0000 +@@ -159,7 +159,7 @@ + in their unsigned long ioctl codes this will break and need + special casing based on the platform being built on. + */ +- int arg = 0; ++ char* arg = 0; + int ret; + Py_buffer pstr; + char *str; diff -ruwN source/Modules/resource.c source-new/Modules/resource.c --- source/Modules/resource.c 2025-10-09 18:07:00.000000000 +0700 +++ source-new/Modules/resource.c 2025-12-09 22:14:30.781035339 +0700