mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
This commit enables using `pip` as a pre-compiled (pyc) built-in distributed along with cpython. Signed-off-by: Tiago Medicci <tiago.medicci@espressif.com>
25 lines
875 B
Diff
25 lines
875 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Tiago Medicci <tiago.medicci@espressif.com>
|
|
Date: Thu, 7 May 2026 14:00:00 -0300
|
|
Subject: [PATCH] posixmodule: ignore chmod on NuttX like WASI
|
|
|
|
NuttX's tmpfs does not implement chstat, so chmod fails with ENOSYS.
|
|
Apply the same workaround already used for WASI: silently succeed
|
|
when HAVE_CHMOD is not defined.
|
|
|
|
---
|
|
Modules/posixmodule.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/Modules/posixmodule.c
|
|
+++ b/Modules/posixmodule.c
|
|
@@ -3608,8 +3608,8 @@
|
|
#ifdef HAVE_CHMOD
|
|
result = chmod(path->narrow, mode);
|
|
-#elif defined(__wasi__)
|
|
- // WASI SDK 15.0 does not support chmod.
|
|
+#elif defined(__wasi__) || defined(__NuttX__)
|
|
+ // WASI SDK 15.0 and NuttX do not fully support chmod.
|
|
// Ignore missing syscall for now.
|
|
result = 0;
|
|
#else
|