diff options
Diffstat (limited to 'apps/system/usbmsc')
-rw-r--r-- | apps/system/usbmsc/usbmsc_main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/system/usbmsc/usbmsc_main.c b/apps/system/usbmsc/usbmsc_main.c index 39eaebeff..1e5a314ae 100644 --- a/apps/system/usbmsc/usbmsc_main.c +++ b/apps/system/usbmsc/usbmsc_main.c @@ -389,7 +389,11 @@ static int usbmsc_enumerate(struct usbtrace_s *trace, void *arg) * ****************************************************************************/ +#ifdef CONFIG_BUILD_KERNEL +int main(int argc, FAR char **argv) +#else int msconn_main(int argc, char *argv[]) +#endif { FAR void *handle; int ret; @@ -568,10 +572,14 @@ int msconn_main(int argc, char *argv[]) * device. This program is only available if CONFIG_NSH_BUILTIN_APPS * is defined in the NuttX configuration. In that case, this program can * be executed by entering the "msdis" command at the NSH console. +#ifdef CONFIG_BUILD_KERNEL * +int main(int argc, FAR char **argv) ****************************************************************************/ +#else #ifdef CONFIG_NSH_BUILTIN_APPS +#endif int msdis_main(int argc, char *argv[]) { /* First check if the USB mass storage device is already connected */ |