summaryrefslogtreecommitdiff
path: root/apps/examples/elf/elf_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/elf/elf_main.c')
-rw-r--r--apps/examples/elf/elf_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/elf/elf_main.c b/apps/examples/elf/elf_main.c
index 88c6e804f..d14ebe659 100644
--- a/apps/examples/elf/elf_main.c
+++ b/apps/examples/elf/elf_main.c
@@ -215,7 +215,11 @@ static inline void testheader(FAR const char *progname)
* Name: elf_main
****************************************************************************/
+#ifdef CONFIG_BUILD_KERNEL
+int main(int argc, FAR char **argv)
+#else
int elf_main(int argc, char *argv[])
+#endif
{
struct binary_s bin;
int ret;