diff options
Diffstat (limited to 'apps/examples/mtdpart')
-rw-r--r-- | apps/examples/mtdpart/mtdpart_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/mtdpart/mtdpart_main.c b/apps/examples/mtdpart/mtdpart_main.c index 2dca73ff3..c99440baf 100644 --- a/apps/examples/mtdpart/mtdpart_main.c +++ b/apps/examples/mtdpart/mtdpart_main.c @@ -148,7 +148,11 @@ extern FAR struct mtd_dev_s *mtdpart_archinitialize(void); * Name: mtdpart_main ****************************************************************************/ +#ifdef CONFIG_BUILD_KERNEL +int main(int argc, FAR char **argv) +#else int mtdpart_main(int argc, char *argv[]) +#endif { FAR struct mtd_dev_s *master; FAR struct mtd_dev_s *part[CONFIG_EXAMPLES_MTDPART_NPARTITIONS]; |