nuttx-apps/interpreters/python/patch/0021-posixmodule-ignore-utime-enosys-on-nuttx.patch
Tiago Medicci 58b780c280 interpreters/python: Add ctypes prototype patches for NuttX
Integrate NuttX-specific ctypes and posixmodule updates.

Signed-off-by: Tiago Medicci <tiago.medicci@espressif.com>
2026-05-22 21:51:31 +08:00

16 lines
345 B
Diff

--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -6666,6 +6666,13 @@
}
#endif
+#if defined(__NuttX__)
+ if (result == -1 && errno == ENOSYS) {
+ /* SmartFS and other NuttX fs do not implement chstat. */
+ Py_RETURN_NONE;
+ }
+#endif
+
if (result < 0) {
path_error(path);
return NULL;