diff options
Diffstat (limited to 'apps/examples/nsh')
-rw-r--r-- | apps/examples/nsh/nsh_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/nsh/nsh_main.c b/apps/examples/nsh/nsh_main.c index a6ce3442b..e2c639469 100644 --- a/apps/examples/nsh/nsh_main.c +++ b/apps/examples/nsh/nsh_main.c @@ -116,7 +116,11 @@ const struct symtab_s CONFIG_EXECFUNCS_SYMTAB[1]; * Name: nsh_main ****************************************************************************/ +#ifdef CONFIG_BUILD_KERNEL +int main(int argc, FAR char **argv) +#else int nsh_main(int argc, char *argv[]) +#endif { int exitval = 0; int ret; |