mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-18 17:32:09 +08:00
nsh/fsutils: fix build break if CONFIG_NSH_DISABLE_PKILL not disabled
arm-none-eabi/bin/ld: apps/libapps.a(nsh_proccmds.c.obj): in function `cmd_pkill': apps/nshlib/nsh_proccmds.c:861:(.text.cmd_pkill+0x38): undefined reference to `nsh_getpid' Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
@@ -1394,7 +1394,7 @@ int nsh_foreach_direntry(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_NSH_DISABLE_PIDOF)
|
#ifdef CONFIG_FS_PROCFS
|
||||||
ssize_t nsh_getpid(FAR struct nsh_vtbl_s *vtbl, FAR const char *name,
|
ssize_t nsh_getpid(FAR struct nsh_vtbl_s *vtbl, FAR const char *name,
|
||||||
FAR pid_t *pids, size_t count);
|
FAR pid_t *pids, size_t count);
|
||||||
#endif
|
#endif
|
||||||
|
@@ -63,7 +63,7 @@ struct getpid_arg_s
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_NSH_DISABLE_PIDOF)
|
#ifdef CONFIG_FS_PROCFS
|
||||||
static int getpid_callback(FAR struct nsh_vtbl_s *vtbl,
|
static int getpid_callback(FAR struct nsh_vtbl_s *vtbl,
|
||||||
FAR const char *dirpath,
|
FAR const char *dirpath,
|
||||||
FAR struct dirent *entryp, FAR void *pvarg)
|
FAR struct dirent *entryp, FAR void *pvarg)
|
||||||
@@ -604,7 +604,7 @@ FAR char *nsh_getdirpath(FAR struct nsh_vtbl_s *vtbl,
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_NSH_DISABLE_PIDOF)
|
#ifdef CONFIG_FS_PROCFS
|
||||||
ssize_t nsh_getpid(FAR struct nsh_vtbl_s *vtbl, FAR const char *name,
|
ssize_t nsh_getpid(FAR struct nsh_vtbl_s *vtbl, FAR const char *name,
|
||||||
FAR pid_t *pids, size_t count)
|
FAR pid_t *pids, size_t count)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user