diff options
Diffstat (limited to 'apps/examples/usbserial')
-rw-r--r-- | apps/examples/usbserial/usbserial_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/usbserial/usbserial_main.c b/apps/examples/usbserial/usbserial_main.c index dc7e1959a..c6ec48113 100644 --- a/apps/examples/usbserial/usbserial_main.c +++ b/apps/examples/usbserial/usbserial_main.c @@ -201,7 +201,11 @@ static void dumptrace(void) * usbserial_main ****************************************************************************/ +#ifdef CONFIG_BUILD_KERNEL +int main(int argc, FAR char **argv) +#else int usbserial_main(int argc, char *argv[]) +#endif { #ifndef CONFIG_EXAMPLES_USBSERIAL_INONLY int infd; |