nuttx-apps/interpreters/python/patch/0021-posixmodule-ignore-utime-enosys-on-nuttx.patch

17 lines
345 B
Diff
Raw Normal View History

--- 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;