summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authortangzz98 <[email protected]>2022-12-12 17:12:20 -0500
committerguo <[email protected]>2022-12-13 11:50:29 +0800
commit89c3bf5f92c9bcc6996f274908e544031dbb9c8d (patch)
tree565812e97515084c466895c3b831d95c74766257 /components
parent9860b168b865af7ab1d17a13c9e7a7d5a958a022 (diff)
ESP32_C3: Improve Readme, fix compile errors/warnings
Diffstat (limited to 'components')
-rw-r--r--components/finsh/msh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/finsh/msh.c b/components/finsh/msh.c
index 4b06964010..399aed7ef3 100644
--- a/components/finsh/msh.c
+++ b/components/finsh/msh.c
@@ -294,9 +294,9 @@ static int _msh_exec_cmd(char *cmd, rt_size_t length, int *retp)
return 0;
}
+#if defined(RT_USING_LWP) && defined(DFS_USING_POSIX)
pid_t exec(char*, int, int, char**);
-#if defined(RT_USING_LWP) && defined(DFS_USING_POSIX)
/* check whether a file of the given path exits */
static rt_bool_t _msh_lwp_cmd_exists(const char *path)
{