nsh_fscmd.c:fix "implicit declaration" warning.
Fix error: implicit declaration of function 'nsh_foreach_direntry' [-Werror=implicit-function-declaration] on file nsh_fscmds on some compiler versions. Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
This commit is contained in:
parent
415168dde6
commit
046fe00b96
@ -571,9 +571,9 @@
|
||||
# undef NSH_HAVE_READFILE
|
||||
#endif
|
||||
|
||||
/* nsh_foreach_direntry used by the ls and ps commands */
|
||||
/* nsh_foreach_direntry used by the ls and ps and fdinfo commands */
|
||||
|
||||
#if defined(CONFIG_NSH_DISABLE_LS) && defined(CONFIG_NSH_DISABLE_PS)
|
||||
#if defined(CONFIG_NSH_DISABLE_LS) && defined(CONFIG_NSH_DISABLE_PS) && defined(CONFIG_NSH_DISABLE_FDINFO)
|
||||
# undef NSH_HAVE_FOREACH_DIRENTRY
|
||||
#endif
|
||||
|
||||
|
@ -42,6 +42,8 @@
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include "nsh.h"
|
||||
|
||||
#if !defined(CONFIG_DISABLE_MOUNTPOINT)
|
||||
# include <sys/mount.h>
|
||||
# include <sys/boardctl.h>
|
||||
|
Loading…
Reference in New Issue
Block a user