mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Integrate NuttX-specific ctypes and posixmodule updates. Signed-off-by: Tiago Medicci <tiago.medicci@espressif.com>
16 lines
345 B
Diff
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;
|